Search text in directory
grep -H -r "Find me" /path/to/dir
Written by 家儒
Related protips
2 Responses
I use this function:
function findr
{
grep -RnisI $1 .;
}
Use it like this:
$> findr "Find me"
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Related Tags
#linux
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#