ggrep↗
A grep clone written in Go from scratch. Recursive directory traversal, case-insensitive matching, line numbering, and the flag combinations that make grep actually usable. Benchmarked against the real thing on an Apple M4 — faster than macOS BSD grep, within ~2x of GNU grep.
- DEFAULT
- 511 ns/op
- -n FLAG
- 464 ns/op
- RECURSIVE
- 2.78 µs/op