DAIC 当前离线
中将
1 : 2 ~!@#$%^&*() {}:"<>?复制代码
2 : 1 {}:"<>? ~!@#$%^&*()复制代码
1 2 : 2 : 1 ~!@#$%^&*() {}:"<>? {}:"<>? ~!@#$%^&*()复制代码
冷玉公子 当前离线
三级士官
TOP
CUer 当前离线
上尉
ArdentMan 当前离线
中尉
@Echo Off For /F "tokens=1* delims=:" %%i In ('Findstr /n .* b.txt') Do Set "_%%i=%%j" (For /F "delims=" %%i In ('Findstr /n .* a.txt') Do ( Set "Str=%%i"& Set /A Count+=1 SetLocal EnableDelayedExpansion For %%j In (!Count!) Do Echo,!Str:*:=! !_%%j! EndLocal ))>c.txt Start c.txt复制代码
@Echo Off Set /A Count=-1 :Lp Set /A Count+=1 Set "Sk=skip=%Count% " If %Count% EQU 0 Set "Sk=" For /F "%Sk%delims=" %%i In (a.txt) Do Set /P=%%i <Nul&Goto Next Pause>Nul&Exit :Next For /F "%Sk%delims=" %%i In (b.txt) Do Set /P=%%i<Nul&Echo,&Goto Lp复制代码
awk 当前离线
gawk "NR==FNR{a[FNR]=$0}NR>FNR{print a[FNR],$0}" a.txt b.txt > c.txt复制代码