[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Binary diff and X color resolution
- To: Shaul Karl <shaulka(at-nospam)bezeqint.net>
- Subject: Re: Binary diff and X color resolution
- From: "Nadav Har'El" <nyh(at-nospam)math.technion.ac.il>
- Date: Sun, 29 Jul 2001 10:39:27 +0300
- Cc: linux-il(at-nospam)iglu.org.il
- Delivered-To: iglu.org.il-linux-il@iglu.org.il
- Hebrew-Date: 9 Av 5761
- In-Reply-To: <E15QbeX-0000dy-00@rakefet>; from shaulka@bezeqint.net on Sun, Jul 29, 2001 at 12:29:39AM +0300
- References: <Pine.LNX.4.33_heb2.09.0107281826450.2208-100000@green> <lists-linux-il@ira.scso.com> <E15QbeX-0000dy-00@rakefet>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
- User-Agent: Mutt/1.2i
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