grep - inclure

grep pattern -r --include="*.cpp"
Itchy Ibis