Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Technical Support _ How to unzip a zip format file with subzip files inside

Posted by: SyedIrtaza Jan 24 2016, 01:46 AM

I have TSMC technology library. Its in the zip format. If i extract the zip folder, there are sub zip folders inside. And if i extract any particular zip folder it has .tar.gz file format inside. Please let me know how to extract it in just few commands. I want to make sure all the files are extracted within their own folders. Please help me in this regards.

Thanks,
Irtaza

Posted by: michaelk Jan 24 2016, 07:50 AM

tar -zxvf *.tar.gz will unzip a gzipped archive.

Posted by: SyedIrtaza Jan 24 2016, 08:46 AM

Thanks michaelk. But i have zip file and multiple zip files inside that zip file. and in each sub zip file i have .tar.gz files. I want to extract them in their same locations.


Posted by: michaelk Jan 25 2016, 01:39 PM

I do not know how well this will work...

find /path/to/lib_directory --type f -name "*.zip" -exec unzip {} \;

find /path/to/lib_directory --type f -name "*.tar" -exec tar -xvf {} \;

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)