新聞中心

        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 命令

        評論


        相關推薦

        技術專區

        關閉
        主站蜘蛛池模板: 遵化市| 鄄城县| 衡南县| 正定县| 合江县| 新乡市| 苍溪县| 图木舒克市| 盐源县| 容城县| 长汀县| 远安县| 富顺县| 绵竹市| 綦江县| 莲花县| 镇赉县| 云和县| 齐齐哈尔市| 新野县| 义马市| 鄂尔多斯市| 吉林省| 宝应县| 探索| 富蕴县| 儋州市| 乌兰浩特市| 隆化县| 兴义市| 龙南县| 壶关县| 云阳县| 伊春市| 上思县| 读书| 泽州县| 贵溪市| 利川市| 奉节县| 会理县|