The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need help on comparison of two csv files sourav1982 Shell Programming and Scripting 5 08-11-2008 02:33 PM
comparison of 2 files kamal_418 Shell Programming and Scripting 2 08-04-2008 06:05 AM
Comparison of two files in awk jerome Sukumar Shell Programming and Scripting 12 07-26-2006 08:16 AM
text files, ASCII files, binary files and ftp transfers Perderabo Answers to Frequently Asked Questions 0 04-08-2004 04:25 PM
Binary Comparison indigoecho Shell Programming and Scripting 3 12-18-2003 07:24 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-27-2008
Registered User
 

Join Date: Nov 2006
Posts: 1
Comparison between binary files

Hello,

I would like to know if we can compare binary(non text) files in unix
eg. exes

Thanks

Saurabh
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-27-2008
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,293
Wink Take a look at diff

Below, I copy ots to another location; meaning both files are identical.
The 2nd line diff command returns nothing; confirming that the files are identical.

I then compare two slightly different versions of the file; and get the message that the binary files are different.

Code:
> cp otsort ../cbin2/ots_orig
> diff otsort ../cbin2/ots_orig
> diff ots ots64
Binary files ots and ots64 differ
Reply With Quote
  #3 (permalink)  
Old 08-28-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
Also check out the cmp command.
Reply With Quote
  #4 (permalink)  
Old 08-28-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 5,214
Are you trying to get version information? try ident.
If you are trying to see that compiled image files are identical, try md5 or cksum
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
None

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 05:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66