A variable holds the string as, nameList="abc bcd bcde cdefg" and another variable has string as, checkname="bcd".
Now i have to check if $checkname is present in $nameList or not. It should search for exact value only.
For eg. if we check for "bcd" it should throw yes, if we check for "bc" it should throw no. I need this condition check in "if" condition
Thanks.