xueyufei 当前离线
列兵
ShowCode 当前离线
VIP1
@echo off set "OutFile=Merge.asc" cd /d "%~dp0" type nul > "%temp%\%OutFile%" for /f "delims=" %%i in ('dir /b /a-d *.asc') do ( echo %%i more +2 "%%i" >> "%temp%\%OutFile%" ) move "%temp%\%OutFile%" "%~dp0"复制代码
TOP
hfxiang 当前离线
上尉
gawk "NR==FNR&&FNR<3;FNR>2" 20*.asc>合并.asc复制代码