Last active
May 3, 2016 21:40
-
-
Save catichenor/d82e457168c8d07c3566e658c885ae78 to your computer and use it in GitHub Desktop.
Unzip and untar all files in the current directory
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
#!/bin/bash | |
find . -name "*.tar.gz" -maxdepth 1 -exec tar -zxvf {} \; # untar/ungzip all archives in the current directory | |
# find . -name "*.tar.bz2" -maxdepth 1 -exec tar -vxjf {} \; # Do the same for .tar.bz2 files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment