Skip to content

Instantly share code, notes, and snippets.

@AtsushiSakai
Created February 15, 2015 01:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AtsushiSakai/fb2b579a1585b8ba29e8 to your computer and use it in GitHub Desktop.
Save AtsushiSakai/fb2b579a1585b8ba29e8 to your computer and use it in GitHub Desktop.
Shell script to zip each directory in the current directory
#!/bin/bash
# zip each directory
find . \! -name '*.zip' \! -name '.' -type d -exec zip -r {}.zip {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment