×
嵌入式 > 嵌入式开发 > 详情

Linux比较文件命令comm

发布时间:2020-06-20 发布时间:
|

comm如此好用的命令居然一直不知道很落后

comm 可以比较出两个已排序文件的内容

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的内容

comm (sort txt) (sort txt)

存在txt不存在txt的内容

comm (sort txt) (sort txt)

存在txt也存在txt的内容

comm (sort txt) (sort txt)

什么也不显示:)

comm (sort txt) (sort txt)



『本文转载自网络,版权归原作者所有,如有侵权请联系删除』

热门文章 更多
NXP推出Wi-Fi 6E三频段SOC 充分释放6GHz频谱潜力