vinoth.ree has asked for the wisdom of the Perl Monks concerning the following question:
How to list out files from foo.tar.gz, where foo.tar.gz in bar.tar.gz file.
For example, I have bar.tar.gz file which contains many tar.gz files, I need to read bar.tar.gz file and find tar.gz files in it and read files from that tar.gz
bar.tar.gz--> foo.tar.gz --> text1.txt, text2.txt Here I need to list out those text1.txt and text2.txt files. I can do this by `tar-xzOf bar.tar.gz foo.tar.gz|tar tzf`. but to how to automate this thing? any module available for this ? suggestions are greatly appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading tar.gz file recursively
by atcroft (Abbot) on Oct 13, 2017 at 05:31 UTC | |
by vinoth.ree (Monsignor) on Oct 13, 2017 at 05:51 UTC | |
by atcroft (Abbot) on Oct 13, 2017 at 06:02 UTC | |
|
Re: Reading tar.gz file recursively
by thanos1983 (Parson) on Oct 13, 2017 at 09:37 UTC |