In a shell script, how can I find out if a string is contained within another string. In bash, I would just use =~, but I am not sure how I can do the same in /bin/sh. Is i
You can try lookup 'his' in 'This is a test'
TEST="This is a test" if [ "$TEST" != "${TEST/his/}" ] then echo "$TEST" fi