- @echo off & setlocal enabledelayedexpansion
- findstr /in .* "M2_20140601.txt">$
- for /f "delims=:" %%i in ('findstr /i "\<2-40\>" $') do set /a n=%%i,m=n+5
- for /L %%i in (%n%,1,%m%) do set "str=!str! %%i:"
- (for /f "tokens=1*delims=:" %%i in ('findstr /ib "%str%" $') do echo;%%j)>tmp.txt
- start "" tmp.txt&del $
复制代码
|