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]