Please take a look at ack, which is designed for exactly these situations. Your example of
is done with ack as
because ack never looks in binary files by default, and -r is on by default. And if you want only CPP and H files, then just do
| |||||||||||
Thank you for your feedback. |
unix - grep --exclude/--include syntax (do not grep through certain files) - Stack Overflow
'via Blog this'