How to extract nested tar.gz files easily?

Posted by StarCub on Stack Overflow See other posts from Stack Overflow or by StarCub
Published on 2010-05-06T03:01:46Z Indexed on 2010/05/06 3:08 UTC
Read the original article Hit count: 339

Filed under:
|

Hi,

I need to extract tar.gz a file. It's about 950mb. It has another 23 tar.gz files in it. Each of those 23 tar.gz files has one tar file in them. My questions is how I can easily extract all of them? Is there a commandline tool that I can use?

The structure is like the following:

foo.tar.gz
 +---bar1.tar.gz
 ¦   +---foobar1.tar
 +---bar2.tar.gz
 ¦   +---foobar2.tar
 +---bar3.tar.gz
 ¦   +---foobar3.tar
 +---bar4.tar.gz
 ¦   +---foobar4.tar
 +---bar5.tar.gz
 ¦   +---foobar5.tar
 +---bar6.tar.gz
 ¦   +---foobar6.tar
 |   ..........
 |   ..........
 |   ..........
 |   23 of them

Thanks in advance.

© Stack Overflow or respective owner

Related posts about extract

Related posts about command-line