Double quote using FINDSTR inside FOR

December 7, 2011 at 12:09:57
Specs: Windows XP
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.


See More: Double quote using FINDSTR inside FOR

Report •

#1
December 8, 2011 at 06:40:26
FOR /f "tokens=1 delims=:" %a in ('FINDSTR /n /c:^""^" s.txt') do @echo %a


Report •
Related Solutions


Ask Question