Skip to content

Instantly share code, notes, and snippets.

@stevekm
Created January 19, 2016 14:27
Show Gist options
  • Save stevekm/10fb724e92fd8e6dc64c to your computer and use it in GitHub Desktop.
Save stevekm/10fb724e92fd8e6dc64c to your computer and use it in GitHub Desktop.
Unzip all .zip files in current directory into new directory of the same name. This is for OS X
#!/bin/bash
# unzip all files in current directory
# extract into new directory of the same name
for i in *.zip; do echo $i; echo ${i%.zip}; mkdir ${i%.zip}; unzip ${i} -d ${i%.zip}; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment