Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a zipped folder which contains thousands of zipped folders contained in itself and that goes down the hierarchy, I have to unzip each and every file and place it in a single folder.

This task is platform independent either in linux or on windows.

Your help would be highly appreciated. Thankyou.

share|improve this question

I tried it the quick and dirty way and it worked for me. Create a script:

function rec_unzip {
unzip $1 && rm $1
for i in $(find . -name "*.zip"); do
    if [ -f $i ]
         rec_unzip $i
rec_unzip $1

execute the script with ./

You are free to modify it to supply target directories to unzip.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.