for sol in $* do echo Checking $sol for non-pointer variables... if egrep -E "^[^a-z].*(char|short|int|double|long) [^*]" $sol then true else echo " none detected" fi echo echo Checking $sol for casts... if grep "\((char)\|(short)\|(int)\|(double)\|(long)\)" $sol then true else echo " none detected" fi echo echo Checking $sol for square brackets... if fgrep [ $sol then true else echo " none detected" fi done