comm(1) comm(1)
NAME
comm - select or reject lines common to two sorted files
SYNOPSIS
comm [-123] file file2
DESCRIPTION
comm reads file1 and file2, which should be ordered in the
current locale's collating sequence [see sort(1)], and
produces a three-column output: lines only in file1; lines
only in file2; and lines in both files. The file name - means
the standard input.
Flags 1, 2, or 3 suppress printing of the corresponding
column. Thus comm -12 prints only the lines common to the two
files; comm -23 prints only lines in the first file but not in
the second; comm -123 prints nothing.
The lines are compared using the current locale's collation
sequence, set by the environment variable LC_COLLATE. [see
LANG in environ(5) for the locale environment variables, and
their effects on collation.] Note that if the files were
sorted with a different collation sequence from each other, or
from that under which comm is executed, the results will be
meaningless.
The LC_CTYPE environment variable determines the codesets used
in the command line arguments and the files. [see LANG on
environ(5)]. Note that if this variable differs when the
files are sorted, or when comm is executed, the output of comm
will be meaningless. Note also, that if LC_CTYPE and
LC_COLLATE are set to different values, meaningful results
cannot be guaranteed.
Files
/usr/lib/locale/locale/LC_MESSAGES/uxdfm
language-specific message file [see LANG on environ(5)].
REFERENCES
cmp(1), diff(1), join(1), sort(1), uniq(1)
Copyright 1994 Novell, Inc. Page 1