Skip to content

Instantly share code, notes, and snippets.

@yaph
Created February 15, 2013 20:06
Show Gist options
  • Save yaph/4963114 to your computer and use it in GitHub Desktop.
Save yaph/4963114 to your computer and use it in GitHub Desktop.
Create a tar archive for all directories in current director.
ls -d * | xargs -i tar czf "{}.tgz" {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment