Created
February 27, 2013 00:25
-
-
Save Link-/5043704 to your computer and use it in GitHub Desktop.
# Linux
# Will tarify all folders/files in a directory and create
# a separate tar file for each
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
#!/bin/bash | |
# Will tarify all folders/files in a directory and create | |
# a separate tar file for each | |
for f in */; do tar -cvf "${f%/}.tar" "$f"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment