The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-09-2009
talashil talashil is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 61
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