Quickly find differences between two large text files

后端 未结 5 1650
野性不改
野性不改 2021-01-02 06:41

I have two 3GB text files, each file has around 80 million lines. And they share 99.9% identical lines (file A has 60,000 unique lines, file B has 80,000 unique lines).

5条回答
  •  孤街浪徒
    2021-01-02 07:30

    If order matters, try the comm utility. If order doesn't matter, sort file1 file2 | uniq -u.

提交回复
热议问题