Created
July 2, 2018 20:54
-
-
Save ereli/6f5874c8c46509299721f5c3f462f930 to your computer and use it in GitHub Desktop.
tar every folder in the current 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
for file in (find . -maxdepth 1 -type d) | |
tar -v --remove-files -cSf (basename $file).tar (basename $file)/ | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment