COMM(1)COMM(1)NAMEcomm - select or reject lines common to two sorted files
SYNOPSIScomm [ -123 ] file1 file2
DESCRIPTION
Comm reads lines from file1 and file2, which are in lexicographical
order, and produces a three column output: lines only in file1; lines
only in file2; and lines in both files. The file name means the stan‐
dard input.
Each option digit or suppresses printing of the corresponding column.
EXAMPLEcomm-12 file1 file2
Print lines common to two sorted files.
SOURCE
/appl/cmd/comm.b
SEE ALSOsort(1), cmp(1), diff(1), uniq(1)COMM(1)