Created
August 27, 2013 22:26
-
-
Save pgwillia/6359946 to your computer and use it in GitHub Desktop.
To unarchive directories 4 deep. (The inverse of archive_4deep.sh)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find -name *.tar.gz -exec bash -c 'sudo mkdir -p $(dirname {})/$(basename {} .tar.gz) && sudo tar zxf {} -C $(dirname {})/$(basename {} .tar.gz)' \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment