Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ comm(1) — DG/UX 4.30

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cmp(1)

berk_diff(1)

diff(1)

sort(1)

uniq(1)



     comm(1)                    DG/UX 4.30                     comm(1)



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

     SYNOPSIS
          comm [ - [ 123 ] ] file1 file2

     DESCRIPTION
          Comm reads file1 and file2, which should be ordered in ASCII
          collating sequence (see sort(1)).  It then produces a
          three-column output: lines only in file1; lines only in
          file2; and lines in both files.  If either file1 or file2 is
          -, then standard input is used.

          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; and comm -123 is a no-op.

     EXAMPLES
          $ comm report.1 report.2

          Compares "report.1" and "report.2" and lists the lines only
          in "report.1" in column 1, those only in "report.2" in
          column 2.  The lines that the files have in common are in
          column 3.

          $ comm -12 - report.2

          Compares "report.2" to standard input and prints only the
          lines that are identical.

          $ comm -23 report.1 report.2 >change

          Compares "report.1" and "report.2" and sends the lines that
          are only in "report.1" to the file called "change".

     SEE ALSO
          cmp(1), berk_diff(1), diff(1), sort(1), uniq(1).

















     Licensed material--property of copyright holder(s)         Page 1



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