also @ TechSpot: AMD Radeon HD 7770 & Radeon HD 7750 Review
Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Sign up or Login to participate.

Go Back   TechSpot OpenBoards > Software > The Alternative OS

Begin your free trial now Pay-as-you-go options starting at $10/user/month

Gzip and tar @ the same time in Solaris...

Thread Tools Search this Thread
  #1  
Old 03-26-2002
lokem's Avatar
TechSpot Addict
 
Location: Assembled In Malaysia
Member since: Mar 2002, 773 posts
Gzip and tar @ the same time in Solaris...

Hi all,

Anyone knows how to tar and gzip a file at the same time in Solaris 8?

This is easy to do under Linux with tar xzvf, but I'm not sure how to pipe the commands under Solaris...

TIA.
  #2  
Old 03-26-2002
Mictlantecuhtli's Avatar
TechSpot Special Forces
 
Location: Finland
Member since: Feb 2002, 4,886 posts
System specs
gunzip < file.tar.gz |tar xfv -
  #3  
Old 03-27-2002
lokem's Avatar
TechSpot Addict
 
Location: Assembled In Malaysia
Member since: Mar 2002, 773 posts
Quote:
Originally posted by Mictlantecuhtli
gunzip < file.tar.gz |tar xfv -
COol thanks. What about gzipping a file?
  #4  
Old 03-28-2002
Mictlantecuhtli's Avatar
TechSpot Special Forces
 
Location: Finland
Member since: Feb 2002, 4,886 posts
System specs
(g)zip (-r) package-name file(s). Use -r if you want to include subdirectories as well.
  #5  
Old 03-28-2002
lokem's Avatar
TechSpot Addict
 
Location: Assembled In Malaysia
Member since: Mar 2002, 773 posts
Quote:
Originally posted by Mictlantecuhtli
(g)zip (-r) package-name file(s). Use -r if you want to include subdirectories as well.
Thanks. I was actually asking how to tar and gzip (compress) at the same time. Guess I should have made my question a little bit more clearer
  #6  
Old 03-28-2002
Mictlantecuhtli's Avatar
TechSpot Special Forces
 
Location: Finland
Member since: Feb 2002, 4,886 posts
System specs
tar -cf package files/directories ;gzip package.tar
By the way, bzip2 compresses much better than gzip.
  #7  
Old 03-28-2002
lokem's Avatar
TechSpot Addict
 
Location: Assembled In Malaysia
Member since: Mar 2002, 773 posts
Quote:
Originally posted by Mictlantecuhtli
tar -cf package files/directories ;gzip package.tar
By the way, bzip2 compresses much better than gzip.
Ahh... The semicolon Thanks for the heads up. Yups, thanks for the bzip2 tip as well. I'll use bzip2 when I can, but it isn't installed in the system I'm using
  #8  
Old 03-28-2002
Mictlantecuhtli's Avatar
TechSpot Special Forces
 
Location: Finland
Member since: Feb 2002, 4,886 posts
System specs
By the way, not all versions of tar add that .tar extension there.
Closed Thread

Similar Topics
Topic Replies Forum
Combining the 5 solaris files... 8 The Alternative OS
How to get image of RAM in Linux & Solaris through C++ Programming 3 The Alternative OS
Virtual X11 Server for Solaris 9 1 The Alternative OS
SSH- Solaris 2.8 4 The Alternative OS
Sun to unveil Solaris 10 later this year 0 General Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
All times are GMT -4. The time now is 02:07 AM.