Created
June 11, 2015 14:29
-
-
Save hgascon/fbcfe175a3110b2dc6a8 to your computer and use it in GitHub Desktop.
Decompress a gzip file without gz extension
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
gzip -d "" -f gzippe_file | |
#For several files under several directories | |
for item in $(ls -d -1 $PWD/**/*); do | |
echo $item; zcat $item > temp; | |
sed -i 's/, / /g' temp; | |
gzip temp; | |
mv temp.gz $item; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment