Untarring multiple files

I downloaded the full folder of mini-howtos from the Linux Documentation project. One subfolder has all of the mini howtos in html format, but they are *.html.tar.gz. I can extract them individually with the command:
tar -zxvf filename.tar.gz with no problem but there well over a hundred mini howto's. I managed to ungzip all of them with an asterick so now all I have  are the hundred or so tarballs. I've been over the tar man pages and haven't found a promising way to extract them all at the same time.

BTW and unrelated - Mandrake 7 is simply amazing. It found my SBLive and set it up, my CD-Writer too, found my nic and asked me the right questions during install so that I was online at first boot.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Assuming bash is your shell, type (in the right directory):
for i in *.tar.gz; do tar -zxvf $i; done

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Actually, if you have already gunzipped them, all you need to do is
for i in *.tar; do tar -xvf $i; done
. and since they have all been ungzipped you won't have to use the z in the above code joe_k gave you.
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

dudleyfAuthor Commented:
That worked perfectly. I only had to type it 3 times to get it right.
Hi, how would I be able to add to this if there are files that need have *.tar.gz along with .tar, and i would like to uncompress them at the same time.

I would appreciate your input.


You can combine the two mentioned commands (separated with semicolon):

for i in *.tar.gz; do tar -zxvf $i; done; for i in *.tar; do tar -xvf $i; done

The first part uncompresses and un-tars all .tar.gz files, the second part un-tars all the .tar files.
Thank  you for your assistance,


It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.