file search linux by text

C++
grep -rnw '/path/to/somewhere/' -e 'pattern'
Source

Also in C++: