comm# Compare two sorted files line by line. $ comm <(sort a) <(sort b) $ comm -12 <(sort a) <(sort b)