Created
September 15, 2017 06:36
-
-
Save kaskavalci/27cab7bde8816d56056b45513abdf105 to your computer and use it in GitHub Desktop.
Untar all files in a directory to unique directories
This file contains hidden or 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
# Change file extension if needed | |
for f in *.tgz ; do mkdir "${f%%.*}" && tar xzf $f -C "${f%%.*}" ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment