COMM(1) COMMAND REFERENCE COMM(1)
NAME
comm - select or reject lines common to two sorted files
SYNOPSIS
comm [ -[123] ] filename1 filename2
DESCRIPTION
Comm reads filename1 and filename2, which should be ordered
in ASCII collating sequence, and produces a three column
output: lines only in filename1; lines only in filename2;
and lines in both files. The filename - (a dash) means the
standard input.
OPTIONS
-1, -2, and/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 is a no-op.
EXAMPLES
The following example will print on standard output only the
lines common to filename1 and filename2:
comm -12 filename1 filename2
RETURN VALUE
[NO_ERRS] Command completed without error.
[USAGE] Incorrect command line syntax. Execution
terminated.
[P_ERR] A system error occurred. Execution
terminated. See intro(2) for more
information on system errors.
CAVEATS
Multiple options may not be split up. For example, executing
the command:
comm -1 -2 filename1 filename2
tells comm to print lines only in the file -2 and common to
the files -2 and filename1.
SEE ALSO
cmp(1), diff(1), cut(1), egrep(1), fgrep(1), grep(1),
join(1), look(1), paste(1), sort(1), and uniq(1).
Printed 4/6/89 1
%%index%%
na:240,108;
sy:348,267;
de:615,521;
op:1136,613;
ex:1749,278;
rv:2027,444;
ca:2471,366;
se:2837,309;
%%index%%000000000134