- @echo off&setlocal enabledelayedexpansion
- for /f "delims=" %%a in (a.txt) do (
- set /a n+=1&set "_!n!=%%a"
- if "%%a" equ "qwe 0" set "flag=a"
- if defined flag set /a m+=1
- if "!m!" equ "3" goto next
- )
- :next
- set /a v=n-4
- for /l %%a in (%v%,1,%n%) do echo !_%%a!
- pause>nul
复制代码
|