Skip to content

Instantly share code, notes, and snippets.

@jemekite
Created April 5, 2015 16:05
Show Gist options
  • Save jemekite/bd7f88f27797736f94bf to your computer and use it in GitHub Desktop.
Save jemekite/bd7f88f27797736f94bf to your computer and use it in GitHub Desktop.
zip multiple directories into individual zip files
for i in */; do zip -r "${i%/}.zip" "$i"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment