Linux and Unix bdiff command

Quick links

About bdiff
Syntax
Examples
Related commands
Linux and Unix main page

About bdiff

Used to find what lines in filename1 and filename2 must be changed to bring the file into agreement. Its purpose is to allow processing of files too large for diff.

Syntax

bdiff filename1 filename2 [ n ] [ -s ]

filename1First name of file to compare.
filename2Second name of file to compare.
nThe 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.
-sSpecifies that no diagnostics are to be printed by bdiff (silent option). Note: However, this does not suppress possible diagnostic messages from diff , which bdiff calls.

Examples

bdiff myfile1.txt myfile2.txt

Compare the files myfile1.txt and myfile2.txt and give results similar to the following:

1c1
< is this ln
---
> test
3,5d2
< Hello world
< this is a test
< of the bdiff file

Related commands

diff