ripgrep

Fast line-oriented search tool, combining grep and The Silver Searcher

brewmacoslinux
Try with needOr install directly
Source

About

Search tool like grep and The Silver Searcher

Commands

rg

Examples

Search for a pattern in the current directory recursively$ rg 'pattern' .
Search for a pattern in specific file types only$ rg --type py 'def function_name'
Search with context lines and case-insensitive matching$ rg -i -C 3 'TODO' src/