把a文件删除b文件中的相同的行

grep -vxFf b.txt a.txt > newa.txt

更好的方法是spa

comm -1 -3 b.txt a.txt > newa.txt

来自Tool in unix to subtract text files? [duplicate]unix

相关文章
相关标签/搜索