fanfande 当前离线
中尉
hzcxdgioa (妮昵)当前离线
TOP
awk 当前离线
上尉
@echo off for %%a in (*.txt) ( gawk "NR!=3" "%%a" >"%%a.new" )复制代码
545810831 当前离线
二级士官
@echo off if not exist b md b for %%i in (*.txt) do ( for /f "tokens=1,2 delims=:" %%a in ('findstr /n ".*" "%%~i"') do if %%a neq 3 echo %%b>>"b\%%i" ) pause 复制代码
gawk "NR!=3" a.txt >b.txt复制代码
CrLf 当前离线
论坛巡查
more +3 a.txt>b.txt ::适合处理少量大文件复制代码
(for /f "skip=3 delims=" %%a in (a.txt) do echo %%a)>b.txt ::适合处理大量小文件,输出不含空行复制代码
findstr /n .* *.txt|findstr /vb "[^:]*:[123]:" ::适合处理大量大文件复制代码