Created
November 6, 2013 18:17
-
-
Save thewellington/7341289 to your computer and use it in GitHub Desktop.
tar and zip all the directories into individual .tgz files
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
#!/bin/bash | |
# | |
# Used to tar up all the directories in the cwd and create tgzs with the names of the original directories | |
for i in `find . -type d -depth 1`; do tar -czvf $i.tgz $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment