I&#39;m having a little brain fart here..&nbsp; <br><br>How can I use an if then else to test for partial matches in a variable?<br><br>For example, say I want to match on &quot;apple&quot; below...<br><br>myvar=orange orange apple grape<br>
<br>if [ &quot;$myvar&quot; = &quot;apple&quot; ]; then<br>echo Variable contains apple<br>else<br>echo Variable does not contain apple<br>fi<br><br>Thanks<br><br>