Skip to content

Instantly share code, notes, and snippets.

@sridharraman
Created May 22, 2013 10:25
Show Gist options
  • Select an option

  • Save sridharraman/5626620 to your computer and use it in GitHub Desktop.

Select an option

Save sridharraman/5626620 to your computer and use it in GitHub Desktop.
Tar each folder separately into a separate archive
for dir in `ls`; do tar -cvzf ${dir}.tar.gz ${dir}; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment