Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ comm(1) — sys5 — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought



COMM(1)         DOMAIN/IX Reference Manual (SYS5)         COMM(1)



NAME
     comm - select or reject lines common to two sorted files

USAGE
     comm [ - [ 123 ] ] file1 file2

DESCRIPTION
     Comm reads file1 and file2, producing a three-column output
     showing lines only in file1, lines only in file2, and lines
     in both files.  Both files being read should be ordered in
     ASCII collating sequence.  Refer to sort (1) for more infor-
     mation about this sequence.

     If you specify a dash (-) in place of a filename, comm reads
     the standard input.  Flags 1, 2, or 3 suppress printing of
     the corresponding column.  Using all three flags at once
     creates a no-op.

EXAMPLES
     To print only the lines common to both file1 and file2, type
     the following:

          comm -12 file1 file2

     To suppress columns 2 and 3, and then print lines in file 1
     (but not in file2), use this command:

          comm -23 file1 file2

RELATED INFORMATION
     cmp (1), diff (1), sort (1), uniq (1).
























Printed 6/10/85                                            COMM-1



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