bash find text in specific file

C++
find <your directory path> -name "*.file_type" -type f | xargs grep "word"
Source

Also in C++: