|
pattern matching
Hi ,
I am writing a shell script . part of it is to check for a patterm match .
in english if value of $oraserver matches +ASM then ( $oraserver values will be in general like +ASM1, +ASM11,+ASM12 etc)
if [ "$oraserver" == "+ASM" ]
when I tried with the above it is giving the error as :
?*+ not preceded by valid expression.
?*+ not preceded by valid expression.
any ideas how to do this ?
Thanks
|