Команда bdiff
Used to find which 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.
bdiff filename1 filename2 [ n ] [ -s ]
| filename1 | First name of file to compare. |
| filename2 | Second name of file to compare. |
| n | 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. |
| -s | Specifies 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. |
bdiff myfile1.txt myfile2.txt - Would 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