Linux Command Line Loops
There are times you want to enter a single-line command to unzip all the files in a directory. If the current directory is:
/home/timb/download/files
the command would be:
for i in `ls ~/download/files/`; do tar -xzvf ~/download/files/$i; done
This would unzip every .tar.gz file in that directory into your current directory.