View Single Post
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#22
Originally Posted by eitama View Post
The thing that is not working is the * (asterisks).
Try a pattern matching expression, like this:
Code:
if [ "${my#*bc}" != "$my" ]