undo a gzip recursively
OK, so I did a stupid, and forgot to specify a filename in the process of doing a website backup.
Now, all my files say file_name.extn.gz
How do I get all those mistakenly gzipped files back to normal?
I've tried tar, unzip, etc but not successful. The directories are not .gz, only each file inside.
System is 14.04.4 LTS
What gzip -r
does, gunzip -r
undoes:
$ gzip foo -r
$ find foo
foo
foo/d
foo/d/1.gz
foo/a
foo/a/3.gz
$ gunzip -r foo
$ find foo
foo
foo/d
foo/d/1
foo/a
foo/a/3