megrep
megrep is a cross-platform command-line utility for searching text patterns within files and data streams. It is designed as a fast, scalable alternative to traditional search tools, with particular attention to large codebases, logs, and pipelines. The tool supports standard regular expressions and also offers variations such as Perl-compatible (PCRE) syntax and extended regular expressions, enabling complex matching.
Features include recursive directory search, case-insensitive and exact matching options, print of line numbers and filenames,
Implementation and licensing: megrep is described as an open-source project implemented in a memory-safe language and
History and usage: As a conceptual tool, megrep has been discussed in open-source circles as an example
Examples: megrep -R "TODO" /path; megrep -i -n "error|fail" /var/log; cat logfile | megrep -E "pattern".