This is a nice example of how to loop over a bunch of files in a shell script: something that is extremely useful: http://www.tech-recipes.com/solaris_tips166.html.