Created
April 2, 2016 20:45
-
-
Save ddunkin/f30b48bcc760640d3437ae6c27cbdea3 to your computer and use it in GitHub Desktop.
Create tarballs for all directories matching a pattern
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
find . -name "*.xcarchive" -type d -exec tar -czf "{}.tgz" -C "$(dirname "{}")" "$(basename "{}")" ";" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment