yyz219 当前离线
中尉
TOP
aloha20200628 当前在线
上尉
@echo off for /f %%n in ('sed -n "$=" 1.txt') do set/a "n=%%n-4" echo,>>2.txt & sed "%n% r 2.txt" 1.txt>1.new.txt复制代码
评分人数
hfxiang 当前在线
sed "4r2.txt" 1.txt>3.txt复制代码
sed -e "4r2.txt" -e "5s/^/\n/" 1.txt>3.txt复制代码
(findstr /v $ 2.txt>nul && (sed -e "5 s/^/\n/" -e "4 r 2.txt" 1.txt)||sed "4 r 2.txt" 1.txt)>1.new.txt复制代码
@echo off for /f %%n in ('sed -n "$=" 1.txt') do (set/a "n=%%n-4, m=n+1") (findstr /v $ 2.txt>nul && (sed -e "%m% s/^/\n/" -e "%n% r 2.txt" 1.txt)||sed "%n% r 2.txt" 1.txt)>1.new.txt复制代码