bash proper way to search file for a string code example
Example 1: bash find text in specific file
find <your directory path> -name "*.file_type" -type f | xargs grep "word"
Example 2: shell find string in directory
grep -R "string_to_search" *