deathis8080 Posted January 21, 2013 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 16 Reputation: 0 Joined: 06/21/12 Last Seen: March 27, 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 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 7 Reputation: 0 Joined: 01/05/12 Last Seen: May 11, 2017 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 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 218 Reputation: 16 Joined: 01/24/12 Last Seen: May 24, 2015 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 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 16 Reputation: 0 Joined: 06/21/12 Last Seen: March 27, 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 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 118 Reputation: 6 Joined: 12/20/12 Last Seen: November 10, 2014 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 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 16 Reputation: 0 Joined: 06/21/12 Last Seen: March 27, 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...
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 deathis8080Link to comment
Share on other sites
5 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.