gunzip and tar examples one liner

iKnow-IT banner

A few example:

create a tar file and compress in a oline liner :-)

tar cvf - whatever | gzip -c > myfile.tar.gz 
tar cvf - rel_01.01 | gzip -c > rel_02.00.test.tar.gz 
tar cvf - rel_01.30 | gzip -c > rel_01.30.tar.gz 
tar cvf - rel_02.00 | gzip -c > rel_02.00.tar.gz 

gzip -d < /tivrepos/nimhost/netcool/sources/rel_01.70.tar.gz | tar xvf - 

tar cvf - tip | gzip -c > tip.backup.08.10.2013.tar.gz 

"cd /opt/IBM/WebSphere/; tar cvf - AppServer | gzip -c > /opt/IBM/tivoli/was.backup.20.11.2013.tar.gz"