Unzip multiple files in same directory on Mac OS X

If you have multiple zip files in a directory and you want to extract all of them at once into that directory, then simply do

  • Open Spotlight and enter “Terminal”
  • then enter the following
# go to the containing folder
cd /Users/phil/Downloads/folder_with_zips

# backslash with SHIFT+ALT+7
unzip \*.zip

# cleanup unwanted zips
rm -f *.zip

Thats it !

    • alex
    • May 6th, 2015 3:30am

    why do you have to escape * in unzip?

      • phil
      • May 6th, 2015 2:44pm

      if you dont do that, bash will expand the wildcard, however we want *.zip to be passed to unzip command

  1. No trackbacks yet.