grep -Ff file1 file2:查看 file1 中出现在 file2 中的相同行 grep -vf file1 file2:查看 file1 中没有出现在 file2 中的行 扩展阅读: Linux中grep命令参数及用法详解---linux管道命令grep