Jump to content
  • 0
deathis8080

I made a very huge mistake.

Question

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 deathis8080
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

#!/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 by Mitsu
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.