mnokoko 当前离线
列兵
77七 当前离线
中校
@echo off for /f "useback delims=" %%a in ("a.txt") do ( set /a #"%%a"+=1 ) for /f "useback delims=" %%a in ("b.txt") do ( set /a #"%%a"-=1 ) for /f "tokens=1-2 delims=#=" %%a in ('set #') do ( for /l %%l in (1,1,%%b) do ( echo %%~a ) ) pause复制代码
TOP
hfxiang 当前在线
上尉
gawk "NR==FNR{a[++M]=$0;next}{b[++N]=$0}END{PROCINFO[\"sorted_in\"]=\"@ind_num_asc\";for(i=1;i<=M;i++){out=1;for(j in b){if(a[i]==b[j]){delete b[j];out=0;break}}if(out)print a[i]}}" a.txt b.txt>c.txt复制代码
评分人数
Nsqs 当前离线
少尉
terse 当前离线
中将
powershell -c "(Compare (GC a.txt) (GC b.txt)).Where({ $_.SideIndicator -eq '<=' }).ForEach({$_.InputObject})"复制代码