7/13/2018

Find difference between two large files

sort file1 file2 | uniq -u > file3
If you want to see just the duplicate entries use "uniq -d" option:
sort file1 file2 | uniq -d > file3

From:
https://stackoverflow.com/questions/18069611/fastest-way-of-finding-differences-between-two-files-in-unix

没有评论: