Skip to content

Instantly share code, notes, and snippets.

@ddunkin
Created April 2, 2016 20:45
Show Gist options
  • Save ddunkin/f30b48bcc760640d3437ae6c27cbdea3 to your computer and use it in GitHub Desktop.
Save ddunkin/f30b48bcc760640d3437ae6c27cbdea3 to your computer and use it in GitHub Desktop.
Create tarballs for all directories matching a pattern
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