home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / GNUTUE.ZIP / man / cmp.man < prev    next >
Text File  |  1992-07-18  |  1KB  |  38 lines

  1. NAME
  2.      cmp - compare two files
  3.  
  4. SYNOPSIS
  5.      cmp [-cls] [--show-chars] [--verbose] [--silent] [--quiet] file1 [file2]
  6.  
  7. DESCRIPTION
  8.      This manual page documents the GNU version of cmp.  cmp compares the  two
  9.      given  files,  and  if  they differ, tells the first byte and line number
  10.      where they differ.  The file name `-' is always the standard  input.   If
  11.      one file name is omitted, the standard input is used as well.
  12.  
  13.      It exits with the value
  14.  
  15.      0    The files are identical.
  16.  
  17.      1    The files differ.
  18.  
  19.      2    An error occurred.
  20.  
  21.      OPTIONS
  22.  
  23.      -c, --show-chars
  24.           Print the differing characters like `cat -t' (except  that  newlines
  25.           are printed as `^J').
  26.  
  27.      -l, --verbose
  28.           Print the (decimal) offsets and  (octal)  values  of  all  differing
  29.           bytes.
  30.  
  31.      -s, --silent, --quiet
  32.           Do not print anything; only return an exit status indicating whether
  33.           the files differ.
  34.  
  35.      The long-named options can be introduced with `+' as well  as  `--',  for
  36.      compatibility with previous releases.  Eventually support for `+' will be
  37.      removed, because it is incompatible with the POSIX.2 standard.
  38.