Compare two sorted files line by line
low risk
Shows lines unique to each file and lines common to both.
| Flag | Meaning |
|---|---|
-12 | Show only common lines |
-23 | Show lines only in file 1 |
comm -23 <(sort a) <(sort b)Lines in a but not in b · explain & risk-check →Reference text is hand-written and may be incomplete — check man comm for your version. Test destructive commands on a non-production system first.