This can all be done with standard variable expansions without needing to invoke utilities that aren't built into the shell:
if [ "${runbatch#*FCST}" != "$runbatch" ]
then ****Run Program***
fi
You said run the program if FCST appears in $runbatch . If you meant if FCST appears as the 1st four characters in $runbatch , change "${runbatch#*FCST}" to "${runbatch#FCST}" .
Note that spaces around [ and ] are crucial and shell variable names are case sensitive.