deathis8080 Posted January 21, 2013 Posted January 21, 2013 (edited) Yeah about the topic name, I did use gzip on putty since zip is not working so now everything on my trunk files is now at .gz :/ Is there anyway i can untar/unzip them all again including the files on the sub-directories? by the way i used gzip -f Edited January 21, 2013 by deathis8080 Quote
Mitsu Posted January 22, 2013 Posted January 22, 2013 (edited) #!/bin/bash EADIR="YOU_ATHENA_FOLDER_GOES_HERE" cd ${EADIR} for a in $(find ./ -type d -print) do cd ${a} for b in $(ls | grep .gz) do gunzip -d ${b} done cd ${EADIR} done exit 0 (.gz is for gunzip ) Edited January 22, 2013 by Mitsu Quote
deathis8080 Posted January 21, 2013 Author Posted January 21, 2013 Use gzip -d <filename>.gz Yeah but that's for a single file only right? Quote
Nana Posted January 21, 2013 Posted January 21, 2013 http://mundogeek.net/archivos/2007/05/10/descomprimir-archivos-en-linux-desde-la-consola/ Quote
deathis8080 Posted January 22, 2013 Author Posted January 22, 2013 Thank you very much guys. It's fixed now! Quote
Question
deathis8080
Yeah about the topic name, I did use gzip on putty since zip is not working so now everything on my trunk files is now at .gz :/
Is there anyway i can untar/unzip them all again including the files on the sub-directories? by the way i used gzip -f
Edited by deathis80805 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.