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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compress tar question

Status
Not open for further replies.

schocku

Programmer
Nov 20, 2001
23
US
Simple question...
* I have a a.tar.Z compressed file in directory A.
* I want to uncompress and untar the files in a.tar.Z and put them in directory B.

Is there a more efficient way than doing it in 3 steps...
- cp A/a.tar.Z B/.
- uncompress B/a.tar.Z
- tar -xvf B/a.tar

Thanks for your help.
 
If you have gtar (GNU tar) you can try this:
Code:
gtar -xvZf A/a.tar.Z

Hope This Help
PH.
 
If you don't have gnu tar, you can try this:
Code:
uncompress -c A/a.tar.Z | tar -xvf -


Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top