the_platinum_searcher

Fast code search tool across multiple files and directories

brewmacoslinux
Try with needOr install directly
Source

About

Multi-platform code-search similar to ack and ag

Commands

pt

Examples

search for text inside files$ pt 'function_name'
find all occurrences of a word in current directory$ pt 'TODO'
search for a pattern excluding certain file types$ pt --ignore-dir=node_modules 'require'
search using regular expressions in code$ pt '\bconst\s+\w+\s*=' src/
find matches and show file names only$ pt -l 'deprecated' .