home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d7xx / d747 / aush.lha / AUSH / ExtraCmds.lha / englishdocs / cmp.doc next >
Text File  |  1992-09-04  |  884b  |  38 lines

  1. NAME
  2.     cmp - compare two files
  3.  
  4. SYNOPSIS
  5.     cmp [ -r ] [ -s ] file1 file2
  6.  
  7.  
  8. DESCRIPTION
  9.     The two files are compared. Under default options, cmp makes no
  10.     comment if the files are the same; if they differ, it announces
  11.     the byte number at which the difference occurred  and  the  two
  12.     differing bytes. The differing bytes are printed (first) as  an
  13.     hexadecimal value and (second) as a character  (replaced  by  a
  14.     point if not printable).
  15.     If you specify - as file1 or file2, standard input is used.
  16.  
  17.     Options:
  18.  
  19.     -r        Reverse comparison (announce bytes that are
  20.             the same).
  21.  
  22.     -s        Print nothing, return codes only.
  23.  
  24. RETURN CODES
  25.     0 if all went well (files are identicals)
  26.     1 in case of bad argument (fatal)
  27.     2 if files are differents
  28.  
  29. CHANGES FROM UNIX
  30.     -l option not supported
  31.     added -r option
  32.     print differences as hexa and character.
  33.  
  34. AUTHOR
  35.     Denis GOUNELLE
  36.     Last modified 04-Sep-92
  37.  
  38.