So I was hoping to make a gzipped backup of my entire directory stucture, but I was very stupid and issued the command 'gzip -r ./' hoping to add all files and folders to a single gzip archive. This obviously is very wrong, but before I had time to quit, it gzipped each of my files individually (recursively) and deleted the original. Now I have a file structure that is completely made up of gzipped files. Does anyone know the command to undo what I have done (ie. extract the gzip file in place and then delete the gzip file)?
I am desperate. Thanks x1000 in advance.
Edit: Greg, you are awesome. So simple, but 'gunzip -r ./' solved it! Thank you all very much!
find -type f -name '*.gz' | xargs gunzip– Frank Farmer Jun 3 '11 at 23:02gunzip -r ./? – Greg Hewgill Jun 3 '11 at 23:03tar czf backup.tar.gz /. – Patches Jun 4 '11 at 1:29