xs00001 当前离线
列兵
gawk 当前离线
少将
@echo off for %%a in (*.txt) do ( sed "1N;N;$d;P;D" %%a | sed "5,10d" >另一个文件夹/%%a )复制代码
TOP
lvsehuaxue 当前离线
六级士官
@echo off&setlocal enabledelayedexpansion for /f %%i in ('type a.txt^|find /c /v ""') do set /a m=%%i-3 for /f "delims=" %%i in (a.txt) do ( set /a n+=1 if !n! lss 5 echo %%i if !n! gtr 10 if !n! leq %m% echo %%i ) pause复制代码
lbailian 当前离线