python - Traverse through .tar.gz directories and concatenate files (without uncompressing the folders) -
i have folder of 20000 tar.gz directories, each containing bunch of files. want go in source folder, traverse through tar.gz directories ( without decompressing ) , concatenate files @ end have 3 big files. for e.g. have root folder pnoc has .tar.gz directories, each compressed folder has 3 folders - kallisto , rsem , hugo . have uncompressed 1 such directory , looks this: pnoc/ ├── c021_0001_20140916_tumor_rnaseq.tar.gz ├── c021_0002_001113_tumor_rnaseq.tar.gz ├── c021_0003_001409_tumor_rnaseq.tar.gz ├── c021_0004_001418_tumor_rnaseq.tar.gz ├── c021_0005_001661_tumor_rnaseq.tar.gz ├── c021_0007_001669_tumor_rnaseq.tar.gz ├── c021_0008_001699_tumor_rnaseq.tar.gz ├── c021_0009_001766_tumor_rnaseq.tar.gz ├── c021_0010_001774_tumor_rnaseq.tar.gz ├── c021_0011_001786_tumor_rnaseq.tar.gz ├── c021_0012_001825_tumor_rnaseq.tar.gz ├── c021_0013_001872_tumor_rnaseq.tar.gz ├── cpbt_0001_1_tumor_rnaseq.tar.gz ├── cpbt_0003_1_tumor_rnaseq.tar.gz ├── cpbt_0004_1_tumor_rnaseq.tar.gz ├── c