3 comm \- print lines common to two sorted files
5 \fBcomm\fR [\fB\-123\fR] \fIfile1 file2\fR
18 .FL "\-1" "Suppress column 1 (lines present only in \fIfile1\fP)"
19 .FL "\-2" "Suppress column 2 (lines present only in \fIfile2\fP)"
20 .FL "\-3" "Suppress column 3 (lines present in both files)"
22 .EX "comm file1 file2" "Print all three columns"
23 .EX "comm \-12 file1 file2" "Print only lines common to both files"
26 Two sorted files are read and compared.
27 A three column listing is produced.
34 files common to both files are in column 3.
35 The file name \- means \fIstdin\fR.