tags:

views:

14

answers:

1

hi all

I used the following syntax (part of ksh script) to verify if Validation word exist in LINE_FROM_FILE

    [[ "${LINE_FROM_FILE##*Validation}" != "${LINE_FROM_FILE}" ]] && print "match Validation"

the problem of this sytax that its also match word like Valid or ValidationVALID etc

and my target to match exactly the Validation word in the $LINE_FROM_FILE

I ask if its also possible to use perl syntax in my script to match exactly the Validation word

for example

   [[ ` some perl command ` = Validation  ]] && print "match Validation"

Lidia

A: 

yes. perl -e "insert; perl; code; here;"

e.g.: perl -e "print 'Validation'"

cam