Searching Double quote using FINDSTR inside FOR
Posted: 07 Dec 2011 14:43
Hi Guys,
I need help please.
I have a test file named s.txt.
Here's the contents of the s.txt:
$
%
"
When I type in
FINDSTR /n /c:""" s.txt
in the command line the output is 3:".
However when I type in
FOR /f "tokens=1 delims=:" %a in ('FINDSTR /n /c:"""' s.txt') do echo %a
after I pressed the ENTER key it's asking me "More?".
Please help me.
I need help please.
I have a test file named s.txt.
Here's the contents of the s.txt:
$
%
"
When I type in
FINDSTR /n /c:""" s.txt
in the command line the output is 3:".
However when I type in
FOR /f "tokens=1 delims=:" %a in ('FINDSTR /n /c:"""' s.txt') do echo %a
after I pressed the ENTER key it's asking me "More?".
Please help me.