deathis8080 Posted January 21, 2013 Share 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 Link to comment Share on other sites More sharing options...
Mitsu Posted January 22, 2013 Share 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 Link to comment Share on other sites More sharing options...
Nipsino Posted January 21, 2013 Share Posted January 21, 2013 Use gzip -d <filename>.gz Quote Link to comment Share on other sites More sharing options...
deathis8080 Posted January 21, 2013 Author Share Posted January 21, 2013 Use gzip -d <filename>.gz Yeah but that's for a single file only right? Quote Link to comment Share on other sites More sharing options...
Nana Posted January 21, 2013 Share Posted January 21, 2013 http://mundogeek.net/archivos/2007/05/10/descomprimir-archivos-en-linux-desde-la-consola/ Quote Link to comment Share on other sites More sharing options...
deathis8080 Posted January 22, 2013 Author Share Posted January 22, 2013 Thank you very much guys. It's fixed now! Quote Link to comment Share on other sites More sharing options...
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 deathis8080Link to comment
Share on other sites