git clone https://github.com/skewnart/rgrep && cd rgrep
cargo b -r
Take the executable and keep it in a PATH
> rgrep searchstr file.txt
The word is searchstr.
or
> cat file.txt | rgrep searchstr
The word is searchstr.
Case insensitive usage :
> rgrep searchstr file.txt -i
The word is searchstr.
Searchstr is a good word.