Here is how to run a bash script using a set of files in succession as input:
for i in $( ls_to_select_input_files ) ; do your_scriptname_or_command $i ;done
The following command:
for i in $( ls *.inp ) ; do obchiral $i |grep Clockwise;done
will get all *.inp GAMESS input files in the directory and check the chirality of all chiral atoms with obchiral (from openbabel).