Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gunzip and untar in same command 1

Status
Not open for further replies.

ksbrace

Programmer
May 13, 2000
501
US
Hello,
I'm looking for something that will do the reverse of this,
where this tars and gzips all in one command:
Code:
tar cvf - ./* | gzip > app_hyperion.tar.gz

I want something that gunzips and untars it one command. I have fiddled around to try and reverse it about 1000 ways to Sunday, but I haven't had any success. Thanks in advance!

 
See if your tar has the -z flag - i.e.
Code:
 tar -cvzf output.tar.gz ./*
Reversed by
Code:
tar -xzvf output.tar.gz

If not the reverse of your code is
Code:
gzip -dc app_hyperion.tar.gz | tar -xvf -

Ceci n'est pas une signature
Columb Healy
 
Columb,
Merci, il est parfait!

aka
Thanks,, it is perfect!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top