Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Compresses the subdirectories of a specified directory.
#!/bin/bash
find . -maxdepth 1 -type d -not -path "." -exec tar -zcvf {}.tar.gz {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.