linux下求文件的差集 grep -F -v -f a.txt b.txt | sort | uniq 通过grep命令,可以求得b.txt中去除a.txt后的内容。 比如b.txt 1 2 3 a.txt 1 则该命令内容为 2 3