Recursive search in files on Linux

Tux, the Linux-Penguin

Sometimes I’m searching for a specific function in the many files and directories of a project.

Of course, I could use heavy, often crashing and expensive IDEs to do this but there is one simple and fast method using the “boring” command line and the “ugly” tool grep:

(Maybe I should note, that the “” in this case may mean some irony)

grep -E -lir --include=*.{c,cpp,h,hpp} "void test()"

The options:

So, no need for a heavy IDE ;)

You have another opinion?
Great! Then let's reduce the fallacy together!


Why are there no comments?