Created
July 1, 2012 05:28
-
-
Save chrismealy/3026945 to your computer and use it in GitHub Desktop.
create a zip file for each directory
This file contains hidden or 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
find . -mindepth 1 -maxdepth 1 -type d -print0 |xargs -0 -I {} zip -r "{}.zip" "{}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment