awk日常用脚本

1 求 在file1里 但是不在file2里
awk 'NR==FNR{u[$0]=1}NR>FNR{if(!($0 in u))print}' file2 file1

你可能感兴趣的:(awk)