![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reg: Gzip | sam99 | Shell Programming and Scripting | 5 | 01-30-2008 07:43 AM |
| tar/gzip/gz...which one to use? | abhijeetkul | UNIX for Advanced & Expert Users | 5 | 03-24-2006 03:00 AM |
| TAR and GZIP help | VandeMatram | UNIX for Dummies Questions & Answers | 3 | 03-17-2006 07:35 AM |
| gzip | mfran2002 | SCO | 1 | 12-01-2003 10:23 AM |
| GZIP help, please! | alan | UNIX for Dummies Questions & Answers | 2 | 07-25-2003 03:58 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi All,
I have some files which are 01.tar.gz, 02.tar.gz,03.tar.gz ........30.tar.gz. when I want to extract the files I 'm using this command "gzip -dc *.tar.gz | tar -xvf -" but it just uncompress 01.tar.gz how can I uncompress all of them ? thanx alice |
|
||||
|
You don't say what shell you are using, but here is what I'd do in ksh. If you're not using ksh you could always start a new shell with /bin/ksh to do this command then exit back out to your normal shell.
This example assumes that the command ls *.tar.gz returns all of the ones you want to uncompress and nothing else. If that isn't true you'll have to modify it accordingly. for i in `ls *.tar.gz`;do <return> gzip -dc $i.tar.gz | tar -xvf - <return> done |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|