The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 08:24 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-27-2008
smehra_20 smehra_20 is offline
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
  #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,311
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
  #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.
  #4 (permalink)  
Old 08-28-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,715
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
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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