lokem
03-26-2002, 04:04 AM
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.
Mictlantecuhtli
03-26-2002, 08:58 AM
gunzip < file.tar.gz |tar xfv -
lokem
03-27-2002, 07:25 PM
Originally posted by Mictlantecuhtli
gunzip < file.tar.gz |tar xfv -
COol thanks. What about gzipping a file?
Mictlantecuhtli
03-28-2002, 11:16 AM
(g)zip (-r) package-name file(s). Use -r if you want to include subdirectories as well.
lokem
03-28-2002, 11:27 AM
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 :o
Mictlantecuhtli
03-28-2002, 11:31 AM
tar -cf package files/directories ;gzip package.tar
By the way, bzip2 compresses much better than gzip.
lokem
03-28-2002, 11:50 AM
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 :(
Mictlantecuhtli
03-28-2002, 04:01 PM
By the way, not all versions of tar add that .tar extension there.