Teste Linux se houver string no arquivo
if grep -Fxq "string" file.txt; then
echo "Match"
else
echo "No match"
fi
bougui
if grep -Fxq "string" file.txt; then
echo "Match"
else
echo "No match"
fi
[ grep -Fxq "string" file.txt ] || echo "not found"