if [[ $(grep -c "searched_word" fisier.txt) -gt 0 ]]; then echo "Word was found in the file." else echo "Word was not found, sorry." fi