Shell function to loop any parameters given to the script, just include this function in the file itself or include the function from an external file using "source /path/to/file"