Skip to content

Instantly share code, notes, and snippets.

@pgwillia
Created August 27, 2013 22:26
Show Gist options
  • Save pgwillia/6359946 to your computer and use it in GitHub Desktop.
Save pgwillia/6359946 to your computer and use it in GitHub Desktop.
To unarchive directories 4 deep. (The inverse of archive_4deep.sh)
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