What preparation does comm require for reliable line-by-line comparison?
comm
Both files must contain exactly the same number of lines.
Both input files must be sorted using the same ordering.
Only the first file must be reverse-sorted.
Both files must be converted to binary format.