View Single Post
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#15
Not sure if this is the *best* way to do it but it does seem to work on my N900:

#!/bin/sh

my="abcd"

his=`echo "$my" | grep 'bc'`

if [[ $my == $his ]]

then
echo "Ok"
else
echo "Not ok"
fi
Edit: Meh, beaten to it by a cowboy!