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://www.cnblogs.com/getong/p/5142643.html