if grep -Fxq "string" file.txt; then echo "Match" else echo "No match" fi
[ grep -Fxq "string" file.txt ] || echo "not found"