1846311 Members
3485 Online
110256 Solutions
New Discussion

tar command

 
Nitin Nigam
Occasional Advisor

tar command

Hi
Im trying to ungzip and extract the file using tar.

txrout_14102003_host.tar.gz | gzip -d *.tar.gz | tar -xvf txrout

the above command is unzips the file but tar command is not working can someone tell me how to use tar command

thanks
4 REPLIES 4
tikual
Advisor

Re: tar command

try it

view the files:
gunzip -c *.tar.gz | tar tvf -

extract the files:
gunzip -c *.tar.gz | tar xvf -
Rajeev  Shukla
Honored Contributor

Re: tar command

Use
gzip -d .gz -c |tar tvf -
robbiechen
Occasional Advisor

Re: tar command

i did it as well:
gzcat txrout_14102003_host.tar.gz | tar xvf -
Geoff Wild
Honored Contributor

Re: tar command

Did you try tar zxvf instead of gzip?

You might need to install gnu tar:

http://hpux.ee.ualberta.ca/hppd/hpux/Gnu/tar-1.13.25/

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.