Created
April 19, 2015 17:35
-
-
Save randerzander/04fbad2856dc78c7fb26 to your computer and use it in GitHub Desktop.
tar and gzip everything in a 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
DIR=$1 | |
cd $DIR | |
for file in * | |
do | |
tar -czvf $file.tgz $file/ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment