Created
July 26, 2016 15:48
-
-
Save HennIdan/9852a4d2a705eb8f2215e5461f31b542 to your computer and use it in GitHub Desktop.
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
function unzipAll() | |
{ | |
for file in `ls | /bin/grep zip`; do | |
local base_name="${file%.*}" | |
rm -rf $base_name | |
mkdir $base_name | |
unzip $file -d $base_name | |
rm $file | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment