Click to See Complete Forum and Search --> : Recursive gunzip


willis3000
01-25-2005, 11:52 PM
Hi,

I have a directory structure containing a bunch of individual gzipped files scattered all over the place, what command should I use to recursively decompress all these files?

Thanks!

Will

fatTrav
01-26-2005, 12:09 AM
maybe ...
find /some/directory/with/gunzips/ -name '*.gz' -exec gunzip {} \

or if u want to ask for confirmation...

find /some/path -name '*.gz' -ok gunzip {} \

willis3000
01-26-2005, 12:23 AM
Thanks!

I was using gunzip -r *.gz and it complained that some files don't have the .gz extension, then I basically did gunzip -r * and it worked fine.

Thanks for your help though!

fatTrav
01-26-2005, 12:46 AM
neat, i didn't know gunzip had a recurse flag. but then i don't ever use the gunzip/tar/bunzip programs to extract anything since i got a nice shell function to smart(ly)extract any type of archive for me.

glad you got things figured out ok