* SUMMARY Re: binary files
@ 2000-03-16 21:14 Joe LaCascio
0 siblings, 0 replies; only message in thread
From: Joe LaCascio @ 2000-03-16 21:14 UTC (permalink / raw)
To: tru64-unix-managers
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
>
>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-03-16 21:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-16 21:14 SUMMARY Re: binary files Joe LaCascio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox