diffb(1) MPE/iX Shell and Utilities diffb(1)
______________________________________________________________________
NAME
diffb -- compare binary files and show differences
SYNOPSIS
diffb [-n] [-C n] [-c[n]] file1 file2
DESCRIPTION
The diffb utility indicates which bytes differ in the binary
files file1 and file2. Output consists of descriptions of the
changes in a style reminiscent of the ed text editor. Each
description is headed by a line showing the type of change being
performed. This line contains three pieces of information:
* the location of the range of bytes in file1 affected by the
change, represented as an offset from the beginning of the
file;
* the type of change, which is one of a (append), d (delete), and
c (change);
* the location of the range of bytes in file2 affected by the
change.
After the line giving the type of change, the deleted or added
bytes are displayed. Non-printable bytes are represented by an
escape sequence consisting of a backslash character (\), followed
by the ASCII representation of the byte displayed as a three-
digit octal number.
The output of diffb resembles the output of diff(1), except that
differences are ranges of bytes rather than ranges of lines.
Each displayed set of bytes from file1 is prefixed by <, and a <
appears at the start of each new line in a set of bytes (that is,
after each newline character). Similarly, each group of bytes
from file2 is prefixed by >, and a > appears at the start of each
new line in a set of bytes. If bytes from both file1 and file2
are being displayed, a line consisting of --- separates the two
sets of bytes.
Options
diffb accepts the following options:
-C n This is equivalent to -c n.
-c[n]
With each difference, n bytes of context before and after
each change are shown. The default value for n is 3.
-n The differences are displayed in a form that is usable by
RCS.
1
diffb(1) MPE/iX Shell and Utilities diffb(1)
______________________________________________________________________
DIAGNOSTICS
Possible exit status values are:
0 The files were identical.
1 The files were compared successfully and found to be differ-
ent.
2 An error occurred.
Messages
Message: input file "filename": system error
Cause: See syserror(3).
Action: See syserror(3).
Message: missing number after -C
Cause: You specified the -C option without provide a number as
its argument.
Action: Provide the missing number.
Message: option "-option" unknown
Cause: You specified an option that is not valid for diffb.
Action: Check the DESCRIPTION section of this man page for a
list of valid diffb options.
Message: wrong number of arguments
Cause: You did not specify exactly two files to be compared.
Action: Specify exactly two files to be compared.
For a list of error messages common to all RCS utilities, see
rcserror(3).
PORTABILITY
diffb is an extension to traditional implementations of RCS.
LIMITS
The set of differences produced by diffb is correct but may not
be minimal.
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
diff(1), ed(1)
2