Last Updated: February 25, 2016
·
573
· kayue

Search text in directory

grep -H -r "Find me" /path/to/dir

2 Responses
Add your response

I use this function:

function findr
{
    grep -RnisI $1 .;
}

Use it like this:

$> findr "Find me"

http://flavr.fi/Y0

over 1 year ago ·

I use this alias:

alias rgrep='grep -rnH'

and use it like this:

$> rgrep 'TODO' spec lib
over 1 year ago ·