What about "comm" - compare two sorted files line by line.
You can easily get occurrences only in file 1, in both files, only in file 2.
Super powerful and saved me hours of work.
Super powerful and saved me hours of work.
This may seem obvious, but there are many tiny ways that sorts can differ between locales, operating systems and programs (e.g. Excel), especially when dealing with Unicode. It may look the same 99% of the time, and you may not realize until later that you’ve accidentally filtered out values.
comm <(sort fileA.txt) <(sort fileB.txt)Plus diff was in part written by the author of the linked content :).
sudo apt-get install tkdiff