|
string comparision
Hi friends,
I have a string variable in shell script as :
echo $str
-------------------
Five-time Olympic champion Ian Thorpe retired from competitive swimming on Tuesday at the age of 24, saying breaking records had lost its allure.
---------------
Now I want to check whether the word "from" (case insensitive) exists or not in the above string variable $str. I want to get TRUE or FALSE condition checking.
How to do it in shell script?
Last edited by Fond_of_Opensource; 11-21-2006 at 12:45 AM.
|