.\" ENVIRONMENTS:  COHERENT2
.TH comm "May 18 1983" "" Command
.PC "Print common lines"
\fBcomm [ \fB-123 ] \fIfile1 file2\fR
.PP
.HS
.SH Options:
.IC \fB\-1\fR
Suppress column 1
.IC \fB\-2\fR
Suppress column 2
.IC \fB\-3\fR
Suppress column 3
.Pp
Column 1 has lines unique to \fIfile1\fR;
column 2 has lines unique to \fIfile2\fR;
column 3 has lines common to both files.
Both files should be sorted.
.HE
The command
.B comm
prints the lines unique to
.I file1
in the first column, the lines unique to
.I file2
in the second column, and the lines common to both in the third.
Both
.I file1
and
.I file2
should be sorted in ASCII order.
Any or all columns may be suppressed by
indicating the column or columns to suppress in the optional flag.
The file `\fB-\fR'
means standard input.
.SH "See Also"
.Xr "cmp," cmp
.Xr "commands," commands
.Xr "diff," diff
.Xr "sort," sort
.Xr "uniq" uniq
