Re: binary diff
On Thursday 03 April 2008, Ely Levy wrote: > There are a few of them, take a look for example at xdelta and bsdiff > It really depends on what files you are planning to use the diff on. The more you know about the files, the better tool you can choose. I've had good experience with xdelta. IIRC, it works very similar to the way rsync transfers files, with an advantage to xdelta, since it works locally. Also, xdelta is available both for Windows and Linux, if that matters to you. --yuval signature.asc Description: This is a digitally signed message part.
Re: binary diff
On Thu, Apr 3, 2008 at 3:25 PM, Omer Zak <[EMAIL PROTECTED]> wrote: > xxd's function is exactly to convert from binary into text. > Try to convert your binary files using: > xxd -p -c1 > (works for me: xxd -v output is "xxd V1.10 27oct98 by Juergen Weigert"). > > I checked also how to do it using od. The following would work > (my od --version is 5.97): > od -v -w1 -ta --address-radix none > or: > od -v -w1 -tx1 --address-radix none > > --- Omer > As i replied to someone before, it works for small files. for big files it takes ages to diff using jdiff (jojo's diff) takes very short time, but it gives information of the diff sizes and not about the actual data > On Thu, 2008-04-03 at 11:37 +0300, Yaacov Fenster - System Engineering > Troubleshooting and other stuff wrote: > > Erez - > > > > Perhaps you could first convert the binary files to text representation > > (od --address-radix none) and then preform the comparison in that > > dimension? > > > > Yaacov > > > > Erez D wrote: > > > hi > > > > > > i am looking for something like 'diff' which can compare binary files > > > and give a result other then just 'differ' or 'same' > > > the same as what diff does for text files. > > > > > > i though of using xxd with a regular diff, but that doesn't help, as > > > if there is one byte missing, all lines are shifted which means they > > > are different textually, when they are not really. > -- > One does not make peace with enemies. One makes peace with former > enemies. > My own blog is at http://www.zak.co.il/tddpirate/ > > My opinions, as expressed in this E-mail message, are mine alone. > They do not represent the official policy of any organization with which > I may be affiliated in any way. > WARNING TO SPAMMERS: at http://www.zak.co.il/spamwarning.html > > > = > To unsubscribe, send mail to [EMAIL PROTECTED] with > the word "unsubscribe" in the message body, e.g., run the command > echo unsubscribe | mail [EMAIL PROTECTED] > >
Re: binary diff
xxd's function is exactly to convert from binary into text. Try to convert your binary files using: xxd -p -c1 (works for me: xxd -v output is "xxd V1.10 27oct98 by Juergen Weigert"). I checked also how to do it using od. The following would work (my od --version is 5.97): od -v -w1 -ta --address-radix none or: od -v -w1 -tx1 --address-radix none --- Omer On Thu, 2008-04-03 at 11:37 +0300, Yaacov Fenster - System Engineering Troubleshooting and other stuff wrote: > Erez - > > Perhaps you could first convert the binary files to text representation > (od --address-radix none) and then preform the comparison in that > dimension? > > Yaacov > > Erez D wrote: > > hi > > > > i am looking for something like 'diff' which can compare binary files > > and give a result other then just 'differ' or 'same' > > the same as what diff does for text files. > > > > i though of using xxd with a regular diff, but that doesn't help, as > > if there is one byte missing, all lines are shifted which means they > > are different textually, when they are not really. -- One does not make peace with enemies. One makes peace with former enemies. My own blog is at http://www.zak.co.il/tddpirate/ My opinions, as expressed in this E-mail message, are mine alone. They do not represent the official policy of any organization with which I may be affiliated in any way. WARNING TO SPAMMERS: at http://www.zak.co.il/spamwarning.html = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: binary diff
Erez - Perhaps you could first convert the binary files to text representation (od --address-radix none) and then preform the comparison in that dimension? Yaacov Erez D wrote: hi i am looking for something like 'diff' which can compare binary files and give a result other then just 'differ' or 'same' the same as what diff does for text files. i though of using xxd with a regular diff, but that doesn't help, as if there is one byte missing, all lines are shifted which means they are different textually, when they are not really. thanks, erez. = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: binary diff
There are a few of them, take a look for example at xdelta and bsdiff Ely On Thu, Apr 3, 2008 at 10:45 AM, Erez D <[EMAIL PROTECTED]> wrote: > hi > > i am looking for something like 'diff' which can compare binary files and > give a result other then just 'differ' or 'same' > the same as what diff does for text files. > > i though of using xxd with a regular diff, but that doesn't help, as if > there is one byte missing, all lines are shifted which means they are > different textually, when they are not really. > > > > thanks, > erez. > = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: binary diff
On Thu, Apr 3, 2008 at 11:03 AM, Alon Altman <[EMAIL PROTECTED]> wrote: > what about cmp? > thanks, i didn't know about 'cmp'. however, it's output is cryptic to me. i can not understand what the diff is > > On Thu, Apr 3, 2008 at 12:45 AM, Erez D <[EMAIL PROTECTED]> wrote: > > hi > > > > i am looking for something like 'diff' which can compare binary files > and > > give a result other then just 'differ' or 'same' > > the same as what diff does for text files. > > > > i though of using xxd with a regular diff, but that doesn't help, as if > > there is one byte missing, all lines are shifted which means they are > > different textually, when they are not really. > > > > > > > > thanks, > > erez. > > >
binary diff
hi i am looking for something like 'diff' which can compare binary files and give a result other then just 'differ' or 'same' the same as what diff does for text files. i though of using xxd with a regular diff, but that doesn't help, as if there is one byte missing, all lines are shifted which means they are different textually, when they are not really. thanks, erez.