-name "*.file_type" -type f | xargs grep "word"
Here is what the above code is Doing:
– find all files in the directory path with the file type
2. | xargs grep “word”
– pipe the output of the first command to the grep command
– grep will search for the word in the files