Jump to content
  • 0

I made a very huge mistake.


Question

Posted (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 by deathis8080

5 answers to this question

Recommended Posts

Posted (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 by Mitsu

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...