COMM(1) | User Commands | COMM(1) |
comm
—
comm |
[-123 ] file1 file2 |
comm
utility reads file1 and
file2, which must be ordered in the current collating
sequence, and produces three text columns as output:
If the input files were ordered according to the collating sequence of the current locale, the lines written will be in the collating sequence of the original lines. If not, the results are unspecified.
If either file1 or
file2 is −,
comm
uses standard input starting at the current
location.
If file1, file2, and file3 each contain a sorted list of utilities, the command
$ comm -23 file1 file2 | comm -23 - file3
prints a list of utilities in file1 not specified by either of the other files.
The command:
$ comm -12 file1 file2 | comm -12 - file3
prints a list of utilities specified by all three files; and the command:
$ comm -12 file2 file3 | comm -23 -file1
prints a list of utilities specified by both file2 and file3, but not specified in file1.
comm
:
LANG
, LC_ALL
,
LC_COLLATE
, LC_CTYPE
,
LC_MESSAGES
, LC_NUMERIC
, and
NLSPATH
.
comm
is
Committed. The output of comm
is
Committed.
February 9, 2021 | illumos |