1) 两个文本文件的相同的行,grep -f file2 file12)第一文件有而第二文件无的行grep -fv file2 file13)两个文件的并集。cat file1 file2|sort|uniq > ob.txt