[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binary diff and X color resolution



On Sun, Jul 29, 2001, Shaul Karl wrote about "Re: Binary diff and X color resolution":
> Never did such a thing but one way could be to
> 
>     cmp -l bin1 bin2 > patch.bin
> 
> and let ed handle the actual patching. I guess you will have to run some 
> script on patch.bin before the actual patch in order to be able to let ed do 
> the work.

The original version of "ed" could not handle binary files (which can contain
nulls, lines of arbitrary lengths, last line not ending with a newline, and
other "problems"). I'm not sure if GNU's ed can handle arbitrary binary files,
so I would check carefully before relying on it. (e.g., create a file with
a 100,000 character line, and try to ed on it).

I would look at xdelta - if I remember correctly it's a project based on the
same theory in "rsync" for finding differences between binary files. (google
is you friend. GIYF - see, I invented an acronym too :)).

-- 
Nadav Har'El                        |           Sunday, Jul 29 2001, 9 Av 5761
nyh@math.technion.ac.il             |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |An apple a day keeps the doctor away. An
http://nadav.harel.org.il           |onion a day keeps everyone away!

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il