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

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

更好的方法是

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

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

转载于:https://my.oschina.net/u/191928/blog/618615

猜你喜欢

转载自blog.csdn.net/weixin_34204057/article/details/91986960