思想之翼 当前离线
上尉
sed -i -n "1,500p" D:\数据\A.txt复制代码
评分人数
hfxiang 当前在线
tail -500 1.txt>2.txt复制代码
TOP
sed -i -e :a -e "$q;N;501,$D;ba" D:\数据\A.txt复制代码
aloha20200628 当前在线
@echo off &setlocal for /f %%n in ('find /c /v "" ^<"d:\数据\a.txt" ') do set/a "n=%%n-500" more +%n% "d:\数据\a.txt"复制代码
@echo off &setlocal for /f %%n in ('find /c /v "" ^<"d:\数据\a.txt" ') do set/a "n=%%n-500" more +%n% "d:\数据\a.txt">"d:\数据\a.new.txt"复制代码
qixiaobin0715 当前在线
大校
@echo off for /f "skip=500 delims=" %%i in ('findstr /n .* d:\数据\a.txt') do set /a n+=1 more +%n% d:\数据\a.txt pause复制代码