That seems roughly equivalent to my solution, except that I would be
putting 4 bytes on each line instead of 1 (repeating each byte on 4
consecutive lines, i.e., if the sequence is ABCDEF... the lines would
be ABCD, BCDE, CDEF etc.).

Gerardo

Il giorno dom 18 nov 2018 alle ore 19:09 David A. Wheeler
<[email protected]> ha scritto:
>
> On November 18, 2018 12:29:39 PM EST, Gerardo Ballabio 
> <[email protected]> wrote:
> >Richard Parkins wrote:
> >> Most binary file comparators just compare bytes, which doesn't detect
> >deletions or insertions.
>
> My personal workaround is to generate 1 byte in hexadecimal on each line, and 
> then use regular diff -u.  Diff is quite good at detecting insertions and 
> deletions. This approach is a total failure if there are internal pointers, 
> since slight differences in length can produce a vast number of differences. 
> But in some cases it works well enough, and it is super simple to do.
>
>
> --- David A.Wheeler
_______________________________________________
[email protected] mailing list

To change your subscription options, visit 
https://lists.reproducible-builds.org/listinfo/rb-general.

To unsubscribe, send an email to 
[email protected].

Reply via email to