b
bdiff(1) | bdiff(1) |
NAME
bdiff - diff for large ®les
SYNOPSIS
bdiff ®le1 ®le2 [ n ]
DESCRIPTION
bdiff compares two ®les and produces output identical to what would be produced by diff (see diff(1)), specifying changes that must be made to make the ®les identical. bdiff is designed for handling ®les that are too large for diff, but it can be used on ®les of any length.
bdiff processes ®les as follows:
∙Ignore lines common to the beginning of both ®les.
∙Split the remainder of each ®le into
bdiff recognizes the following
file1
file2 Names of two ®les to be compared by bdiff. If ®le1 or ®le2 (but not both) is
nIf a numeric value is present as the third argument, the ®les are divided into
EXTERNAL INFLUENCES
Environment Variables
LC_MESSAGES determines the language in which messages are displayed.
If LC_MESSAGES is not speci®ed in the environment or is set to the empty string, the value of LANG is used as a default for each unspeci®ed or empty variable. If LANG is not speci®ed or is set to the empty string, a default of "C" (see lang(5)) is used instead of LANG.
If any internationalization variable contains an invalid setting, bdiff behaves as if all internationalization variables are set to "C". See environ(5).
International Code Set Support
Single- and
DIAGNOSTICS
both files standard input (bd2)
Standard input was speci®ed for both ®les. Only one ®le can be speci®ed as standard input.
A
EXAMPLES
Find differences between two large ®les: file1 and file2, and place the result in a new ®le named diffs_1.2.
bdiff file1 file2 >diffs_1.2
Do the same, but limit ®le length to 1400 lines; suppress error messages:
bdiff file1 file2 1400
WARNINGS
bdiff produces output identical to output from diff, and makes the necessary
Section 1−44 | − 1 − |