nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

percentage difference between 2 files

This is a discussion on percentage difference between 2 files within the Shell scripting forums, part of the Development/Scripting category; i know that cmp, diff, diff3, etc are used to compare two files and report the difference line by line, ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 11-16-2005, 02:44 PM
stephen
Guest
 
Posts: n/a
Default percentage difference between 2 files

i know that cmp, diff, diff3, etc are used to compare two files and report the difference line by line, etc.
However, i am interested to find the percentage difference between two files. well its not possible for a text file, but on a binary file, there might some differences between original and its recovered. In this case expressing the difference between the two files as a percentage would be more desirable.
Does any one have an idea of how to get this?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-17-2005, 12:52 AM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 4
tom is on a distinguished road
Default

Use any one of the following utility
JojoDiff - diff utility for binary files http://sourceforge.net/projects/jojodiff/
Xdelta - Most advanced utility for binary file http://sourceforge.net/projects/xdelta/

Let me know if this helped or not...
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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

Similar Threads

Thread Thread Starter Forum Replies Last Post
Difference Between SAN and NAS Devices myfoot Linux hardware 2 03-24-2008 11:50 AM
Difference between Solaris and HP-UX operating system HP-UX 1 12-20-2006 02:51 AM
Difference between RUID and EUID. jithendra Linux software 1 10-17-2006 06:31 AM
difference between Layer 3 switch and Router puppen Computer Networking and Internet/broadband 6 06-29-2006 02:45 PM
The difference between the paths. Gorky Shell scripting 3 09-13-2005 03:37 PM


All times are GMT +5.5. The time now is 07:31 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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