bash script to find text in a file code example
Example 1: bash if file contains string
if grep -q SomeString "$File"; then
Some Actions # SomeString was found
fi
Example 2: bash find text in specific file
find <your directory path> -name "*.file_type" -type f | xargs grep "word"