Created
February 15, 2015 01:18
-
-
Save AtsushiSakai/fb2b579a1585b8ba29e8 to your computer and use it in GitHub Desktop.
Shell script to zip each directory in the current directory
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
#!/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