1、diff
diff a.txt b.txt
2、cat
# a.txt 较大文件
# b.txt 较小文件
# diff 结果保存在 diff.txt中
cat a.txt |fgrep -f b.txt -v > diff.txt
1、diff
diff a.txt b.txt
2、cat
# a.txt 较大文件
# b.txt 较小文件
# diff 结果保存在 diff.txt中
cat a.txt |fgrep -f b.txt -v > diff.txt