1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| @echo off
setlocal enabledelayedexpansion
for /r "%cd%" %%a in (*.hpr) do (
for /f "usebackq delims=" %%b in (`type "%%~a" ^| findstr "[0-9]*~[0-9]*~[0-9]*~1~M"`) do (
for /f "usebackq delims=[]" %%c in (`type "%%~a" ^| find /n "%%b"`) do set "CurrentLine=%%c"
for /f "tokens=1-26 delims=|" %%A in ("%%b") do (
for %%c in (%%A,%%B,%%C,%%D,%%E,%%F,%%G,%%H,%%I,%%J,%%K,%%L,%%M,%%N,%%O,%%P,%%Q,%%R,%%S,%%T,%%U,%%V,%%W,%%X,%%Y,%%Z) do (
for /f "usebackq delims=" %%d in (`echo %%c ^| findstr "[0-9]*~[0-9]*~[0-9]*~1~M"`) do (
echo File: '%%a', Line: !CurrentLine!, String: '%%d'
)
)
)
)
)
pause
exit /b 0 |