Unzip all zip files in the current directory

Unzip all zip files in the current directory

I often have more than one zip file in a directory to unzip – usually Moodle modules or the like. e.g.

mod_hotpot_moodle36_2019012133.zip
mod_hvp_moodle36_2018113000.zip
mod_questionnaire_moodle36_2018050108.zip
mod_checklist_moodle36_2018051500.zip          

To unzip all of the mods into their respective folders in one line:

find . -type f -name "*zip" -exec unzip {} \;

 

Leave a Reply

Your email address will not be published. Required fields are marked *

For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.