Search files with grep

Bourne Again SHell

In a programmers live, you need a recursive file search nearly every day.

Of course, this is possible without a heavy IDE and with a simple but useful bash one liner:

$ grep "pattern" -HniR ./path/to/dir

The options in detail:

Of course, this can also be combined with grep regular expressions.

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

   

Why are there no comments?