Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Regular expression in unix, help pls...

Status
Not open for further replies.

hendnov

Technical User
Feb 27, 2006
73
AU
Hi guys,

Just wondering about the regex of my if condition...
in $1 is = /input_data/boeing/747
but why my script doesnt match, is there something wrong with my regex (*boeing*) ?

Code:
#!/bin/ksh

if [ "$1" = *boeing* ]
then
        echo "this is boeing data"
else
        echo "no way"
 
Has been answered before, see thread822-844146


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top