upvote
You need readfile to do something with those tokens. Grep only gives you the matching lines, not the context.
reply
`grep -C $NUM` ? ;)
reply
Even so. Take a look at the NDCG numbers for grep. It's not pretty
reply
ripgrep exists though
reply
The comparison is with ripgrep, see the benchmarks.
reply