tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Joe LaCascio <jlacasci () wheatonma ! edu>
To: tru64-unix-managers
Subject: SUMMARY Re: binary files
Date: Thu, 16 Mar 2000 21:14:56 +0000	[thread overview]
Message-ID: <96079341819577.tru64-unix-managers.marc@archive.invalid> (raw)


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
> 
> 

                 reply	other threads:[~2000-03-16 21:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox