Hi Guys, I am using the command for /F %x i

November 25, 2011 at 03:06:03
Specs: Windows 7
Hi Guys,

I am using the command
for /F %x in ('findstr /r /n "ERROR" C:\temp\test.log ^| find /C ":"') do echo %x
and its returing C:\Windows\system32>echo 23
23

Its working fine. But my problem is that I need only 23 not the whole string. Please help me. Thanks in advance.


See More: Hi Guys, I am using the command for /F %x i

Report •

#1
November 25, 2011 at 04:03:59
Why did you not code just type C:\temp\test.log | find /C /I "error" ?

Report •
Related Solutions


Ask Question