Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cmp(C) — OpenDesktop 1.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

comm(C)

diff(C)

diff3(C)


     CMP(C)                               UNIX System V



     Name
          cmp - compares two files


     Syntax
          cmp [ -l ] [ -s ] file1 file2


     Description
          cmp compares two files and, if they are different,  displays
          the  byte and line number of the differences. If file1 is -,
          the standard input is used.

          The options are:

          -l    Prints the byte number  (decimal)  and  the  differing
                bytes (octal) for each difference.

          -s    Returns an exit code only, 0 for  identical  files,  1
                for  different  files  and  2  for  an inaccessible or
                missing file.

          This command should be used to  compare  binary  files;  use
          diff(C) or diff3(C) to compare text files.


     See Also
          comm(C), diff(C), diff3(C)


     Standards Conformance
          cmp is conformant with:
          AT&T SVID Issue 2, Select Code 307-127;
          and The X/Open Portability Guide II of January 1987.


     (printed 2/15/90)                                     CMP(C)













































































































































































































































































































































































































































































































































































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