Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

comm(1)

cmp(1)

diff(1)

sort(1)

uniq(1)



  comm(1)                             CLIX                             comm(1)



  NAME

    comm - Selects or rejects lines common to two sorted files

  SYNOPSIS

    comm [-[123]] file1 file2

  DESCRIPTION

    The comm command selects or rejects lines common to two sorted files.  The
    command reads file1 and file2, which should be ordered in ASCII collating
    sequence (see sort), and produces a three-column output: lines only in
    file1; lines only in file2; and lines in both files.  The filename - means
    stdin.

    Flags 1, 2, or 3 suppress displaying of the corresponding column.  Thus
    comm -12 displays only the lines common to the two files; comm -23
    displays only lines in the first file but not in the second; comm -123
    displays nothing.

  EXAMPLES

    1.  To compare the files month1 and month2, enter the following:

        The comm utility will display three-column output showing the
        differences in each file.

        comm month1 month2


    2.  To compare the two files, but display only the lines in file month1,
        enter the following:

        comm -23 month1 month2


  DIAGNOSTICS

    The message:

    comm: cannot open filename

    indicates that comm could not open the file you specified.

  EXIT VALUES

    The comm command returns a value of 0 if successful.  If unsuccessful,
    comm returns a value of 2.

  RELATED INFORMATION



  2/94 - Intergraph Corporation                                              1






  comm(1)                             CLIX                             comm(1)



    Commands: cmp(1), diff(1), sort(1), uniq(1)





















































  2                                              Intergraph Corporation - 2/94




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