Hacker News new | ask | show | jobs
by stephantul 33 days ago
You need readfile to do something with those tokens. Grep only gives you the matching lines, not the context.
1 comments

`grep -C $NUM` ? ;)
Even so. Take a look at the NDCG numbers for grep. It's not pretty
ripgrep exists though
The comparison is with ripgrep, see the benchmarks.