This script has very little sense, but a more useful way to use the for loop would be to use it to match only certain files on ...
tldp.org