find text pattern in file linux

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

Also in C++: