Search files with grep
Posted #CaffeeLog#Linux

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:
Hprinting the filename of the matchnprint also the line numberifor a case *in*sensitive searchRfor recursive
Of course, this can also be combined with grep regular expressions.