daohe 当前离线
五级士官
评分人数
CUer 当前离线
上尉
@echo off for /f "tokens=1-2 delims=," %%a in (a.txt) do ( sed -i "s/%%a/%%b/g" b.txt )复制代码
TOP
gawk "BEGIN{FS=\",\"}NR==FNR{a[$1]=$2}NR>FNR{for(i in a)gsub(i,a[i],$0);print}" a.txt b.txt >c.txt复制代码
gawk "BEGIN{FS=\",\"}NR==FNR{a[$1]=$2}NR>FNR{for(i in a)gsub(i,a[i],$0);print}" a.txt b.txt >c.txt && move /y c.txt b.txt复制代码