diff on compressed files with tar.gz ext | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


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

diff on compressed files with tar.gz ext

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 09-19-2007
rakeshou rakeshou is offline
Registered User
 
Join Date: May 2007
Last Activity: 8 April 2011, 3:59 PM EDT
Posts: 75
Thanks: 0
Thanked 1 Time in 1 Post
diff on compressed files with tar.gz ext

how can I find out what is the difference between two tar.gz files without uncompressing them.

thank you.
Sponsored Links
    #2  
Old 09-19-2007
jas jas is offline
Registered User
 
Join Date: Sep 2007
Last Activity: 26 January 2009, 9:43 AM EST
Location: US
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
hey

Use 'tar tv' This Lists the files from the default tape device without extracting them.

maybe this will help ya...


jas
Sponsored Links
    #3  
Old 09-19-2007
porter porter is offline Forum Advisor  
Registered User
 
Join Date: Jan 2007
Last Activity: 8 January 2008, 6:50 PM EST
Posts: 2,965
Thanks: 0
Thanked 5 Times in 5 Posts
Quote:
Originally Posted by rakeshou View Post
how can I find out what is the difference between two tar.gz files without uncompressing them.

thank you.
You can't. At some point you have to decompress them.
    #4  
Old 09-19-2007
jas jas is offline
Registered User
 
Join Date: Sep 2007
Last Activity: 26 January 2009, 9:43 AM EST
Location: US
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
how bout..

Try Using diff , it will output a difference report containing the text that differs between the two files...

$ diff "file1" "file2" [RET] (of course don't use the ")

Maybe this will do!
Sponsored Links
    #5  
Old 09-19-2007
porter porter is offline Forum Advisor  
Registered User
 
Join Date: Jan 2007
Last Activity: 8 January 2008, 6:50 PM EST
Posts: 2,965
Thanks: 0
Thanked 5 Times in 5 Posts
Quote:
Originally Posted by jas View Post
Try Using diff

...

Maybe this will do!
Or perhaps not.

1. A compressed file is binary, diff is a text tool.

2. A tar file may contain the files in any order and still be considered the same.
Sponsored Links
    #6  
Old 09-19-2007
jas jas is offline
Registered User
 
Join Date: Sep 2007
Last Activity: 26 January 2009, 9:43 AM EST
Location: US
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
...

Sorry!
will cmp work?

jas
Sponsored Links
    #7  
Old 09-19-2007
porter porter is offline Forum Advisor  
Registered User
 
Join Date: Jan 2007
Last Activity: 8 January 2008, 6:50 PM EST
Posts: 2,965
Thanks: 0
Thanked 5 Times in 5 Posts
Quote:
Originally Posted by jas View Post
Sorry!
will cmp work?

jas
2. A tar file may contain the files in any order and still be considered the same.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Extracting data from many compressed files Boltzmann UNIX for Dummies Questions & Answers 1 04-09-2010 02:55 PM
To view compressed files supercops UNIX for Dummies Questions & Answers 4 02-13-2009 06:50 PM
multi part compressed files gffb UNIX for Dummies Questions & Answers 7 05-01-2008 08:32 PM
Line count for compressed files swamy455 Shell Programming and Scripting 1 08-02-2007 11:40 PM
diff 2 files; output diff's to 3rd file blt123 Shell Programming and Scripting 2 05-28-2002 12:29 PM



All times are GMT -4. The time now is 03:49 PM.