Created
July 24, 2012 18:23
-
-
Save stanwu/3171649 to your computer and use it in GitHub Desktop.
archive all files to target folder
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/sh | |
for i in tar.gz tgz tar.bz2 zip rar | |
do | |
find -name "*.$i" -exec archive "{}" true \; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment