Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by stephantul

13 hours ago

You need readfile to do something with those tokens. Grep only gives you the matching lines, not the context.

4 comments

stephantul

Reply

djaboss  13 hours ago

`grep -C $NUM` ? ;)

  • stephantul  13 hours ago

    Even so. Take a look at the NDCG numbers for grep. It's not pretty

    • hparadiz  5 hours ago

      ripgrep exists though

      1 reply →

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities