Created
September 29, 2012 16:32
-
-
Save mpuig/3804536 to your computer and use it in GitHub Desktop.
Compress all subdirectories in the current directory, on different "tar" files, one for each subdirectory
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 | xargs -I {} tar -cf {}.tar {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment