How compare two files in UNIX and remove duplicates?

How compare two files in UNIX and remove duplicates?
Answer
To remove common lines between two files you can use grep , comm or join command. grep only works for small files. Use -v along with -f . This displays lines from file1 that do not match any line in file2 .
 

Tìm kiếm

Back
Top