Test Linux, jeśli istnieje ciąg w pliku
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"