morpheus-base

morpheus base system
git clone git://git.2f30.org/morpheus-base
Log | Files | Refs

cmp.1 (709B)


      1 .Dd November 21, 2014
      2 .Dt CMP 1 sbase\-VERSION
      3 .Os
      4 .Sh NAME
      5 .Nm cmp
      6 .Nd compare two files
      7 .Sh SYNOPSIS
      8 .Nm cmp
      9 .Op Fl l | Fl s
     10 .Ar file1 file2
     11 .Sh DESCRIPTION
     12 .Nm
     13 compares two files byte by byte. If the files differ,
     14 .Nm
     15 prints the byte and
     16 line number at which the difference occurred.
     17 .Pp
     18 .Sh OPTIONS
     19 .Bl -tag -width Ds
     20 .It Fl l
     21 Print the byte number, and the differing bytes (in octal), for each difference.
     22 .It Fl s
     23 Print nothing, only returns status.
     24 .El
     25 .Sh EXIT STATUS
     26 .Bl -tag -width Ds
     27 .It 0
     28 The files are identical.
     29 .It 1
     30 The files are different.
     31 .It > 1
     32 An error occured.
     33 .El
     34 .Sh SEE ALSO
     35 .Xr comm 1 ,
     36 .Xr diff 1
     37 .Sh STANDARDS
     38 The
     39 .Nm
     40 utility is compliant with the
     41 .St -p1003.1-2008
     42 specification.