( Croc | 2012. 11. 05., h – 10:27 )

"not in sorted order" - talán nincs lerendezve?

man comm:
"Before `comm' can be used, the input files must be sorted using the collating sequence specified by the 'LC_COLLATE' locale, with trailing newlines significant. If an input file ends in a non-newline character, a newline is silently appended. The 'sort' command with no options always outputs a file that is suitable input to 'comm'."

Használj elötte sort-ot a fájlokon, és azok kimenetét dolgoztasd fel a comm-al. Talán úgy jó lesz.

De van a man-jában példa is:
$ comm -23 <(sort words.txt | uniq) <(sort countries.txt | uniq)