comm [options] file1 file2Arguments explained
- Options adjust output or behavior.
- Arguments name the files, services, hosts, or values the command should work with.
Common examples
comm -12 <(sort a.txt) <(sort b.txt)Suppresses unique columns and prints shared lines.
comm old.txt new.txtShows three comparison columns.
| Field | Details |
|---|---|
| Command | comm |
| Category | Text Processing |
| Primary use | Compares two sorted files line by line. |
| Syntax | comm [options] file1 file2 |