Tar & gunzip all files in a directory

If you have a directory with loads of *.tar.gz files and you need to extract them all, here’s a quick and easy way.

Just run the following on the command line..

for i in *.tar.gz; do echo file.. $i; tar xvzf $i ; done

 


You may also like...