findstr , , . , . , findstr, :
findstr , , [0-9]+, - error. Found 11 errors and 7 warnings - error, , findstr + ( ), [0-9][0-9]*, . , /C; , /R.
findstr /R /C:"[0-9][0-9]* errors" "test.txt"
, , x5 errorse; , \< ( ) \> ( ). ( , /C:" [0-9][0-9]* errors ", , .)
, :
findstr /R /C:"\<[0-9][0-9]* errors\>" "test.txt"
, :
Found 11 errors and 7 warnings
, 2 errors are enough 35 warnings but less than 3 errors, , , :
findstr /R /C:"^Found [0-9][0-9]* errors and [0-9][0-9]* warnings$" "test.txt"
, 11 errors, :
a for /F findstr :
for /F "tokens=2-3 delims= " %%E in ('
findstr/R /C:"\<[0-9][0-9]* errors\>" "test.txt"
') do echo(%%E %%F
:
for /F "delims=" %%L in ('
findstr /R /C:"\<[0-9][0-9]* errors\>" "test.txt"
') do set "LINE=%%L"
set "LINE=%LINE:* =%"
set "LINE=%LINE: and =" & rem "%"
echo(%LINE%