Skip to content

Instantly share code, notes, and snippets.

@deenjohn
Forked from HennIdan/unzip.sh
Created January 25, 2017 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deenjohn/70e41b84a50c2a7615fdc84575ff1f8e to your computer and use it in GitHub Desktop.
Save deenjohn/70e41b84a50c2a7615fdc84575ff1f8e 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