February 2004
Beginner
200 pages
5h 40m
English
comm [options] file1 file2 — coreutils
/usr/bin stdin stdout - file -- opt --help --versionThe comm command compares two sorted files and produces three columns of output, separated by tabs:
All lines that appear in file1 but not in file2.
All lines that appear in file2 but not in file1.
All lines that appear in both files.
For example, if file1 and file2 contain these lines:
file1: file2:
apple baker
baker charlie
charlie darkthen comm produces this output:
$ comm file1 file2
apple
baker
charlie
darkUseful options | |
| Suppress column 1. |
| Suppress column 2. |
| Suppress column 3. |
Read now
Unlock full access