Unzip all gz files in all subdirectories in the terminal

Viewed 11224

Is there a way to unzip all gz files in the folder containing the zipfiles. When zip files are in subdirectories. A query for

find -type f -name "*.gz"

Gives results like this:

./datasets/auto/auto.csv.gz
./datasets/prnn_synth/prnn_synth.csv.gz
./datasets/sleep/sleep.csv.gz
./datasets/mfeat-zernike/mfeat-zernike.csv.gz
./datasets/sonar/sonar.csv.gz
./datasets/wine-quality-white/wine-quality-white.csv.gz
./datasets/ring/ring.csv.gz
./datasets/diabetes/diabetes.csv.g
2 Answers
Related