I have a .gz file which, in and of itself, has multiple .gz files containing the data I wish to extract in XML format. So, in a sort of "route view" it would look like this:
maingzfile/subgzfile1/xmldata1
maingzfile/subgzfile2/xmldata2
maingzfile/subgzfile3/xmldata3
...
Is there a way I can extract all the XML data directly into a new folder?
Thanks in advance.
You can implement this recursively. The idea here is that while it is a .gz file, recursively extract it. You can modify the following function to extract to another location if needed.