[wplug] Bash conditional help

scoob8000 scoob8000 at gmail.com
Sat May 3 10:24:01 EDT 2008


>
> And more.  :)
>
> Actually, I don't use bash, but the following works in ksh and sh:
>
> myvar="orange orange apple grape"
>
> if echo $myvar | grep apple
>  then echo "got an apple"
> fi
>
>
I actually tried using grep admist my trial and errors, but guess I didn't
get the syntax right.  :)

-Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.wplug.org/pipermail/wplug/attachments/20080503/a52af4db/attachment.html 


More information about the wplug mailing list