for /F %x in (‘findstr /r /n “Output” C:testsasi.log | find /C “:”‘)
do set XXX=%x
echo %x
and get the error message as
“| was unexpected at this time.”
Actually I’m trying to get the number of lines which contains the word “Output” in the file “sasi.log” and trying to store the result in a variable. (which will be finally used as exit code of the bat file)
Any help would be appreciated.
Skumar.
1 Answer