Manual Page Result
0
Command: comm | Section: 1 | Source: UNIX v10 | File: comm.1
COMM(1) General Commands Manual COMM(1)
NAME
comm - select or reject lines common to two sorted files
SYNOPSIS
comm [ -123 ] file1 file2
DESCRIPTION
Comm reads file1 and file2, which are ordered in ASCII collating se-
quence, and produces a three column output: lines only in file1; lines
only in file2; and lines in both files. The filename means the stan-
dard input.
Flag or suppresses printing of the corresponding column.
EXAMPLES
comm -12 file1 file2
Print lines common to two sorted files.
deroff -w /usr/lib/upas/names.last | tr a-z A-Z | sort -u >temp
spell temp | comm -13 - temp
Print names that are known both to mail(1) and spell(1)
SEE ALSO
sort(1), cmp(1), diff(1), uniq(1), join(1)
COMM(1)