From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079341819577.tru64-unix-managers.marc@archive.invalid> From: Joe LaCascio Date: Thu, 16 Mar 2000 21:14:56 +0000 To: tru64-unix-managers Subject: SUMMARY Re: binary files X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079341819577 Ok, thanks everyone. Here's what I found: I had two exe's both created from Pro*C (Oracle). SQL embedded in a C program. There was only one line of code different in the source file, that line being an order by clause. Here are the results with the following exe's: exe source fileone no changes to source filetwo one line changed in source (order by modified) filethree same exact source as fileone diff reported that fileone was diff from filetwo, and fileone was EVEN different from filethree ???? cmp reported same results as diff except it gave a "char 5, line 1" result in all cases sum and cksum report different checksum numbers in all cases, but same block counts. Finally, the solution I came up with: perform a strings on each file and redirect to a file name. then do a diff on the resulting two file names. The result is the code line that is "actually" different. This may not work for all exe's but it did for the Pro*C exe's Thanks, Joe On Thu, 16 Mar 2000, Joe LaCascio wrote: > > Is there a way to tell if two binary files are different? > > Is there a version of diff for binary's? > > Thanks, > Joe > >