forsyth20121205-174063a80cc13 years agoHistory
50 lines · 824 B · Text
RawDownload
.TH CMP 1 .SH NAMEcmp \- compare two files.SH SYNOPSIS.B cmp[.B \-lsL].I file1 file2[.I offset1[.I offset2]].SH DESCRIPTIONThe two files arecompared.A diagnostic results if the contents differ, otherwisethere is no output.By default,.B cmpprints the byte number of the first differing byte..PPThe options are:.TP.B -lPrint the byte number (decimal) and thediffering bytes (hexadecimal) for each difference..TP.B -sPrint nothing for differing files,but set the exit status..TP.B -LPrint the line number of the first differing byte..PPIf offsets are given,comparison starts at the designated byte positionof the corresponding file.Offsets that begin with.B 0xare hexadecimal;with.BR 0 ,octal; with anything else, decimal..SH SOURCE.B /appl/cmd/cmp.b.SH "SEE ALSO".IR diff (1)