Thanks,
Pierre Etchemaïté wrote:
Le Sun, 15 Jan 2006 21:36:20 +0000, Michael Barnwell <[EMAIL PROTECTED]> a
écrit :
I'm not sure how to search
through a binary file for non-zero bytes.
cmp -b ?
[EMAIL PROTECTED]:~$ cmp -b /tmp/1GB.tst /home/michael/1GB.tst
/tmp/1GB.tst /home/michael/1GB.tst differ: byte 68494094, line 1 is 0
^@ 40
That seems to stop after the first difference, so I did: -
[EMAIL PROTECTED]:~$ cmp -bl /tmp/1GB.tst /home/michael/1GB.tst | wc -l
243
The full output of cmp -bl is at http://pastebin.com/507389
Regards,
Michael.