新闻中心

EEPW首页 > 嵌入式系统 > 设计应用 > Linux比较文件命令comm

Linux比较文件命令comm

作者:时间:2016-09-12来源:网络收藏

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

本文引用地址:http://www.amcfsurvey.com/article/201609/303752.htm

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

NAME

– 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)



关键词: Linux comm 命令

评论


相关推荐

技术专区

关闭