cmp(1)                MPE/iX Shell and Utilities                cmp(1)
  ______________________________________________________________________

  NAME
       cmp -- compare two files

  SYNOPSIS
       cmp [-blsx] file1 file2 [seek1[seek2]]

  DESCRIPTION
       cmp compares two files.  If either file name is -, cmp reads the
       standard input for that file.  By default, cmp begins the compar-
       ison with the first byte of each file.  If you specify seek1
       and/or seek2, cmp uses it as a byte offset into file1 or file2
       (respectively), and comparison begins at that offset instead of
       at the beginning of the files.  The comparison continues (one
       byte at a time) until a difference is found, at which point the
       comparison ends and cmp displays the byte and line number where
       the difference occurred.  cmp numbers bytes and lines beginning
       with 1.

  Options
       cmp accepts the following options:

       -b   compares single blocks at a time.  Normally, cmp reads large
            buffers of data into memory for comparison.

       -l   causes the comparison and display to continue to the end.
            cmp displays the byte number (in decimal) and the differing
            bytes (in octal) for each difference found.  cmp attempts no
            resynchronization.

       -s   suppresses output and returns a non-zero status if the files
            differ.

       -x   displays the differing bytes shown by the -l option in hex.

  DIAGNOSTICS
       Possible exit status values are:

       0  The files were identical.

       1  The files were not identical.

       2  Failure because of an error opening or reading an input file.

  Messages

       Message:  indecipherable seek address "string"
       Cause:    You specified an invalid seek address.
       Action:   Specify a valid seek address.

       Message:  filename: system error
       Cause:    See syserror(3).
       Action:   See syserror(3).

                                                                       1

  cmp(1)                MPE/iX Shell and Utilities                cmp(1)
  ______________________________________________________________________

       Message:  too few or too many args
       Cause:    You specified an incorrect number of arguments on the
                 command line.
       Action:   Make sure that you specify two file names and no more
                 than two seek addresses on the command line.

       Message:  Unknown option "-option"
       Cause:    You specified an option that is not valid for cmp.
       Action:   Check the DESCRIPTION section of this man page for a
                 list of valid cmp options.

  PORTABILITY
       POSIX.2.  x/OPEN Portability Guide 4.0.  All UNIX systems.

       The -b and -x options and the seek pointers are extensions to the
       POSIX standard.

  MPE/iX NOTES
       For information on how the current MPE/iX implementation may
       affect the operation of this utility, see Appendix A, MPE/iX
       Implementation Considerations.

  SEE ALSO
       comm(1), diff(1), uniq(1)

                                                                       2