Software Review: BDiff
|Posted by dave on Jan 19, 2004 11:56 AM|
LXer; By Dave Whitinger
bdiff is a "binary diff" and, rather than going line by line, it goes byte by byte.
Since migrating to the MyISAM table format of MySQL, I have had to use the --opt option to mysqldump in order to make SQL files that can be imported in a reasonable amount of time.
The unfortunate side effect of --opt, however, is that each table is turned into one long line (and a 120 meg table makes a VERY long line!).
Alas, when creating a diff of yesterday's table to today's table, now the entire table is included in the patch file because that single line (the 120 meg line) has been changed. :( What I need is a byte-by-byte diff, rather than a line-by-line diff.
Enter a handy tool called bdiff.
bdiff is a "binary diff" and, rather than going line by line, it goes byte by byte. It produced a 2KB patchfile from a 47 meg database, for example, while the standard diff utility produced a patch that was actually bigger than the original! And, bdiff is quite fast!
I have found my new diff utility. Ahhh, a man and his tools. :)
Return to the LXer Features
This topic does not have any threads posted yet!
You cannot post until you login.
Dr Tony Young: Trouble-shooting a VoIP Modem
Nov 07, 2013
Hans Kwint - The Netherlands: Linux Malware: Should we be afraid?
Aug 13, 2013
Penguinist: Gems from Southeast LinuxFest
Jun 10, 2013
Hans Kwint - The Netherlands: Smartcars: Dangerous if software companies would make them
May 27, 2013
Hans Kwint - The Netherlands: High-res batch convert EMZ / WMZ grahpics to PNG a.k.a. "liberating your graphics"
May 24, 2013
ubuuser: The good and bad of Ubuntu 13.04 beta 2
Apr 15, 2013
Scott Ruecker (Phoenix, U.S.): LXer Weekly Roundup for 10-Mar-2013
Mar 11, 2013
Scott Ruecker (Phoenix, U.S.): LXer Weekly Roundup for 03-Mar-2013
Mar 03, 2013
: Ubuntu Touch Developer Preview released
Feb 21, 2013
Scott Ruecker (Phoenix, U.S.): LXer Weekly Roundup for 17-Feb-2013
Feb 18, 2013