In the directory where you have a collection of tar.gz files.
for FILE in $(ls); do tar -zxvf $FILE; done