LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to unzip files recursively inside folders? (https://www.linuxquestions.org/questions/linux-software-2/how-to-unzip-files-recursively-inside-folders-427018/)

jessdog9001 03-21-2006 03:08 PM

How to unzip files recursively inside folders?
 
Hi,
I've been downloading a lot of mod music lately, and much of it comes in .zip files. So I have a big directory filled with sub-directories, each of which has numerous .zip files inside. Is there an easy way to unzip all of the files inside these folders? And also, is there an easy way to remove all of the .zip files afterwards? Thanks,

Jesse

zeitounator 03-21-2006 04:10 PM

Code:

cd path/to/base/dir/were/zip/files/are/located
find . -name "*.zip" -exec unzip {} \; -exec /bin/rm {} \;


jessdog9001 03-22-2006 12:59 PM

:) Thanks a million, I haven't had a chance to try it but it looks like it will work. I guess the answer was simpler than I expected. ;)


All times are GMT -5. The time now is 10:52 PM.