The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Pattern Matching Siv_Pat High Level Programming 0 01-12-2009 12:17 AM
Pattern Matching Siv_Pat UNIX for Advanced & Expert Users 0 01-12-2009 12:16 AM
comment/delete a particular pattern starting from second line of the matching pattern imas Shell Programming and Scripting 4 10-13-2008 02:37 AM
Pattern matching blue_bird UNIX and Linux Applications 3 10-08-2008 01:23 AM
Pattern Matching op4_u Shell Programming and Scripting 10 07-18-2006 12:30 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:25 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0