bdiff(1) CLIX bdiff(1)
NAME
bdiff - Compares large files
SYNOPSIS
bdiff file1 file2 [n] [-s]
FLAGS
-s Specifies that no diagnostics are to be displayed by bdiff. Note,
however, that this does not suppress possible diagnostic messages
from diff, which bdiff calls.
DESCRIPTION
The bdiff command compares large files. The command is used in a manner
similar to diff to find which lines in two files must be changed to bring
the files into agreement. Its purpose is to allow processing of files
which are too large for diff.
The file1 and file2 arguments are files to be compared. If file1 or file2
is -, stdin is read.
The n argument specifies the number of line segments. The value of n is
3500 by default. If the optional third argument is given and it is
numeric, it is used as the value for n. This is useful in those cases in
which 3500-line segments are too large for diff, causing it to fail.
The bdiff command ignores lines common to the beginning of both files,
splits the remainder of each file into n-line segments, and invokes diff
on corresponding segments. If both optional arguments are specified, they
must appear in the order indicated above.
The output of bdiff is exactly that of diff, with line numbers adjusted to
account for the segmenting of the files (that is, to make it look as if
the files had been processed whole). Note that because of the segmenting
of the files, bdiff does not necessarily find a smallest sufficient set of
file differences.
EXAMPLES
To compare the /tmp/foo file to the /tmp/bar file:
bdiff /tmp/foo /tmp/bar
DIAGNOSTICS
Use help for explanations.
2/94 - Intergraph Corporation 1
bdiff(1) CLIX bdiff(1)
EXIT VALUES
Exit values are not valid.
RELATED INFORMATION
Commands: diff(1), help(1)
2 Intergraph Corporation - 2/94