Computing.Net > Forums > Unix > gunzip and tar xvf????

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

gunzip and tar xvf????

Reply to Message Icon

Name: Bash
Date: February 6, 2002 at 07:58:52 Pacific
Comment:

Anyone know how I can create a script to gunzip a *.gz file and then tar xvf the resulting file. Gunzip always removes the .gz extension and leaves tar xvf with an unknown fiel to tar xvf.

Script would be called guntar:

Syntax: guntar



Sponsored Link
Ads by Google

Response Number 1
Name: Rex Lopez
Date: February 11, 2002 at 19:30:10 Pacific
Reply:

gzcat zipfile.tar.gz | tar xvf -


0

Response Number 2
Name: Harshal
Date: June 29, 2002 at 16:28:08 Pacific
Reply:

gunzip < filename.tar.gz | tar xvf -


Have fun and enojoy life.....


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Unix telnet script creating .tar.gz files in...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: gunzip and tar xvf????

Combination of gunzip and tar www.computing.net/answers/unix/combination-of-gunzip-and-tar/5782.html

Differences between cpio and tar www.computing.net/answers/unix/differences-between-cpio-and-tar/3660.html

tar and extract contain from tape. www.computing.net/answers/unix/tar-and-extract-contain-from-tape/7060.html