Created
July 17, 2014 04:16
-
-
Save danishsatkut/cfa3e6abbc2efeaa78f7 to your computer and use it in GitHub Desktop.
Unzip multiple files into a target directory. From: http://superuser.com/questions/139419/how-do-i-gunzip-to-a-different-destination-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
for f in *.gz; do | |
STEM=$(basename "${f}" .gz) | |
gunzip -c "${f}" > /THERE/"${STEM}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment