Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ comm(1) — UTek W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cmp(1)

diff(1)

cut(1)

egrep(1)

fgrep(1)

grep(1)

join(1)

look(1)

paste(1)

sort(1)

uniq(1)



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), uniq(1).



Printed 10/17/86                                                1





































































%%index%%
na:72,92;
sy:164,195;
de:359,457;
op:816,477;
ex:1293,249;
rv:1542,400;
ca:1942,322;
se:2264,273;
%%index%%000000000131

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026