新聞中心

        EEPW首頁 > 嵌入式系統 > 設計應用 > Linux比較文件命令comm

        Linux比較文件命令comm

        作者: 時間:2016-09-12 來源:網絡 收藏

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

        本文引用地址:http://www.104case.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 命令

        評論


        相關推薦

        技術專區

        關閉
        主站蜘蛛池模板: 南川市| 通城县| 鄯善县| 土默特左旗| 惠来县| 清流县| 易门县| 波密县| 乌海市| 铅山县| 无棣县| 泌阳县| 太谷县| 大同县| 榆林市| 临武县| 铁力市| 宝清县| SHOW| 盐亭县| 霍山县| 晋州市| 剑河县| 吉安市| 乌鲁木齐市| 板桥市| 洞口县| 镇沅| 十堰市| 红河县| 裕民县| 松阳县| 东乡族自治县| 兰坪| 侯马市| 福建省| 山东省| 万安县| 驻马店市| 秭归县| 栖霞市|