Linux比較文件命令comm
comm 可以比較出兩個已排序文件的內(nèi)容
NAME
comm – compare two sorted files line by line
SYNOPSIS
comm [OPTION]… FILE FILE
DESCRIPTION
Compare sorted files FILE and FILE line by line
With no options produce threecolumn output Column one contains lines unique to FILE column two contains lines unique to FILE and column three
contains lines common to both files
suppress lines unique to FILE
suppress lines unique to FILE
suppress lines that appear in both files
–help display this help and exit
–version
output version information and exit
ex:
存在txt不存在txt的內(nèi)容
comm (sort txt) (sort txt)
存在txt不存在txt的內(nèi)容
comm (sort txt) (sort txt)
存在txt也存在txt的內(nèi)容
comm (sort txt) (sort txt)
什么也不顯示:)
comm (sort txt) (sort txt)
評論