> To view .gz files without decompressing it | Unix Linux Forums | Shell Programming and Scripting

  Unix/Linux Go Back    


Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.

To view .gz files without decompressing it

Shell Programming and Scripting


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 09-10-2008
ali560045's Unix or Linux Image
ali560045 ali560045 is offline
Registered User
 
Join Date: Oct 2007
Last Activity: 28 August 2012, 1:26 AM EDT
Posts: 333
Thanks: 2
Thanked 0 Times in 0 Posts
To view .gz files without decompressing it

hi,

I have a file called Archiver1.gz

how to view this file without doing gunzip on it i.e. decompressing it

i tried this command but its not working:

gzcat Archiver1.gz | tail -10
Sponsored Links
    #2  
Old Unix and Linux 09-10-2008
zaxxon's Unix or Linux Image
zaxxon zaxxon is offline Forum Staff  
code tag tagger
 
Join Date: Sep 2007
Last Activity: 27 July 2016, 3:57 AM EDT
Location: St. Gallen, Switzerland
Posts: 6,433
Thanks: 151
Thanked 510 Times in 451 Posts
Use zcat.
Sponsored Links
    #3  
Old Unix and Linux 09-10-2008
Annihilannic Annihilannic is offline Forum Advisor  
 
Join Date: May 2008
Last Activity: 28 October 2009, 7:03 PM EDT
Location: Sydney, Australia
Posts: 1,009
Thanks: 0
Thanked 2 Times in 2 Posts
Or gunzip -c.
    #4  
Old Unix and Linux 09-10-2008
ali560045's Unix or Linux Image
ali560045 ali560045 is offline
Registered User
 
Join Date: Oct 2007
Last Activity: 28 August 2012, 1:26 AM EDT
Posts: 333
Thanks: 2
Thanked 0 Times in 0 Posts
zcat Archiver1.gz---------> it's telling Archiver1.gz.Z: No such file or directory
Sponsored Links
    #5  
Old Unix and Linux 09-10-2008
ali560045's Unix or Linux Image
ali560045 ali560045 is offline
Registered User
 
Join Date: Oct 2007
Last Activity: 28 August 2012, 1:26 AM EDT
Posts: 333
Thanks: 2
Thanked 0 Times in 0 Posts
thanks gunzip -c is working
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Find Multiple Strings from a list of *.gz files withour decompressing... varun87 UNIX for Dummies Questions & Answers 4 07-13-2011 03:27 AM
read a compress file without decompressing it Pouchie1 Solaris 1 09-20-2009 03:57 PM
Decompressing Tar Archives (Finally!) unimachead OS X (Apple) 2 03-30-2009 04:12 PM
To view compressed files supercops UNIX for Dummies Questions & Answers 4 02-13-2009 05:50 PM
view log files sak900354 UNIX for Dummies Questions & Answers 5 06-15-2006 07:26 AM



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