if [ "$(cat textfile.txt | grep 'search string')" = "" ]; then; echo "some string"; fi;
if [ "$(cat textfile.txt | grep 'search string')" == "" ] ; then echo "It's not there!" fi