Skip to content

Instantly share code, notes, and snippets.

@asyndrige
Last active January 10, 2019 12:38
Show Gist options
  • Save asyndrige/b99d99180e65ba0fed46217190fd1363 to your computer and use it in GitHub Desktop.
Save asyndrige/b99d99180e65ba0fed46217190fd1363 to your computer and use it in GitHub Desktop.
for i in */;
do
tar -cvjf "${i%/}.tar" "$i";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment