Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cmp(1) — sys5 — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought



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



NAME
     cmp - compare two files

USAGE
     cmp [ -l ] [ -s ] file2

DESCRIPTION
     Cmp makes comparisons between files and indicates the byte
     and line number where differences occur.  If you use a dash
     (-) in place of file1, cmp uses the standard input.  Under
     the default options, cmp makes no comment if the files are
     the same.  If one file is an initial subsequence of the
     other, that fact is noted.

OPTIONS
     -l                  Print the byte number (decimal) and the
                         differing bytes (octal) for each differ-
                         ence.

     -s                  Print nothing for differing files;
                         return codes only.

DIAGNOSTICS
     Returns exit code 0 for identical files, 1 for different
     files, and 2 for an inaccessible or missing argument.

RELATED INFORMATION
     comm (1), diff (1).



























Printed 6/10/85                                             CMP-1



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