Skip to content

Instantly share code, notes, and snippets.

@HennIdan
Created July 26, 2016 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save HennIdan/9852a4d2a705eb8f2215e5461f31b542 to your computer and use it in GitHub Desktop.
Save HennIdan/9852a4d2a705eb8f2215e5461f31b542 to your computer and use it in GitHub Desktop.
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