| @echo off | | setlocal EnableDelayedExpansion | | (for /f "delims=" %%i in (1.txt) do ( | | set "str=%%i" | | echo !str! | findstr "^....-..-...*ERROR" > nul | | if !errorlevel! equ 0 ( | | echo %%i | | ) else ( | | echo !str! | findstr "^....-..-.." > nul | | if !errorlevel! neq 0 ( | | echo %%i | | ) | | ) | | ))>2.txtCOPY |
|