Help - Search - Members - Calendar
Full Version: How to unzip a zip format file with subzip files inside
Linuxhelp > Support > Technical Support
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.

tar -zxvf *.tar.gz will unzip a gzipped archive.
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.

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 {} \;
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.