Created
January 19, 2016 14:27
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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