comm do?compare two SORTED files line by line, in three columns.
▸ Explain your own comm command →$ comm a.txt b.txt
$ comm -12 sorted1 sorted2
$ comm -23 a b
| -1 | suppress column 1 — lines unique to the first file |
| -2 | suppress column 2 — lines unique to the second file |
| -3 | suppress column 3 — lines common to both files |
| -i | compare lines case-insensitively |
| --check-order | fail if either input is not properly sorted |
| --nocheck-order | do not check that the input is sorted |
| --total | also print a summary count line |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.