[X-Unix] diff Binary Files and get List of Differences

Stroller macmonster at myrealbox.com
Mon Sep 8 01:36:44 PDT 2008


On 8 Sep 2008, at 01:33, Jerry Krinock wrote:

> If two binary files aaa and bbb are different,
>
> jk$ diff aaa bbb
> Binary files aaa and bbb differ
>
> True, but I would like to see a list of the differences, like diff  
> gives me for text files.  I understand that this is problematic  
> with binary files since they're one big line, but if, say, the file  
> sizes were the same and the bytes were aligned but some were just  
> different values, I'd like a list of address offsets that differ.

Hi there,

`hexdump -C aaa` and diff that with the hexdump of bbb?

Stroller.



More information about the X-Unix mailing list