Hacker ApprovedDepartments

grep

Hacker Approved

Ranked 3 of 86 privilege escalation tools by recommenders

Fast, decades-old command-line text search that composes well in scripts and agent workflows. Critics say it is lexical and floods context on large codebases.

Fast, decades-old command-line text search that composes well in scripts and agent workflows. Critics say it is lexical and floods context on large codebases.

84 people gave an opinion

recommend it
65
criticize it
19
approval share
77%
Each figure is one person. RecommendsCriticizes

Recommended in 12 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 65 people recommend itNeeds 10 or more, met.
  • 3.4 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 12 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Fast on large text

    “the Linux `find` and `grep` commands usually can find stuff much quicker than any 'accelerated' and 'cached' desktop search”

    Comment from 15 Sep 2026 in “iOS 27, iPadOS 27, and macOS 27”

    “grep is better than almost anything else you can use. It's very very fast and efficient”

    Comment from 12 Oct 2026 in “Local Indexing to reduce tool calling and token usage”

    “grep with LC_ALL=C - is much, much faster than any aggregation tool”

    Comment from 27 Mar 2026 in “A Faster Alternative to Jq”
  • Composes well in pipelines

    “Well grep is just better sometimes. Like you want to copy some lines and grep at the end of a pipeline is just easier”

    Comment from 27 Mar 2026 in “A Faster Alternative to Jq”

    “The ones that survive decades (Make, grep, curl) do one thing and compose well”

    Comment from 5 Mar 2026 in “Good software knows when to stop”

    “Three tools born in Bell Labs that still power every server, every pipeline”

    Comment from 26 Feb 2026 in “Grep, Sed, Awk – The Unix Text Processing Trinity”
  • Decades-old and stable

    “I use grep multiple times per day, works great, I've seen no need to change.”

    Comment from 14 Apr 2026 in “What is jj and why should I care?”

    “They still work exactly the same, and now even my agents can do it.”

    Comment from 2 Jun 2026 in “Stop Ruining It”

    “Grep is 50 years old and still does exactly what we need.”

    Comment from 23 Dec 2025 in “We removed 80% of our agent's tools”
  • Works well for agents

    “agents are insanely good at grep. So much so that I've been trying to figure out how to create an llmgrep tool”

    Comment from 28 Nov 2025 in “Beads – A memory upgrade for your coding agent”

    “Agents love standing on the shoulders of good crystalized cognition (grep, curl etc)”

    Comment from 25 Sep 2026 in “What About Rails?”

    “Claude Code would be far less useful without grep, diff, git, head”

    Comment from 29 Mar 2026 in “Coding Agents Could Make Free Software Matter Again”

What people warn about

Each mark is one comment

  • Lexical; poor at semantic search

    “Grep can cut through almost any code base. The problem is that grep is lexical. It is dumb.”

    Comment from 12 Oct 2026 in “Local Indexing to reduce tool calling and token usage”

    “grep is pretty poorly suited to semantic search and will only return the most basic of matches”

    Comment from 31 Aug 2026 in “Agent memory as a file format”
  • Floods context with many matches

    “it is not very token-efficient as it can return lots of matches, filling up the agent's context”

    Comment from 12 Oct 2026 in “Local Indexing to reduce tool calling and token usage”

    “Claude reading hundreds of kilobytes of outputs because grep found things in node_modules”

    Comment from 18 May 2026 in “Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep”
  • Slow on huge codebases

    “Grep is effective for the most part, except for situations like when you have huge codebases”

    Comment from 27 Apr 2026 in “Show HN: OSS Agent I built topped the TerminalBench on Gemini-3-flash-preview”

    “running grep through millions of files if you use maildir or a similar format takes forever”

    Comment from 5 Feb 2026 in “Msgvault: fast private email archive and search system”
  • Flags differ across GNU and BSD

    “find and grep do similar things but work entirely differently and their args aren't even in the same format”

    Comment from 25 Dec 2025 in “Snitch – A friendlier ss/netstat”

    “`grep -P` kinda annoying. GNU has Perl-compatible regex, and BSD does not.”

    Comment from 13 Mar 2026 in “"This Is Not the Computer for You"”

Other privilege escalation tools people recommend

The four most recommended other privilege escalation tools, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

grep compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
fzf78594%12—Approved
jq753369%12—Approved
grepThis page651977%12—Approved
Atuin632472%112 yrs4 ownersApproved
GitHub CLI494552%12——
See all 86 privilege escalation tools, ranked

What people said

40 of the 91 comments that mention it, newest first. Each links to the original comment.

“it is not very token-efficient as it can return lots of matches, filling up the agent's context”

MixedComment from 12 Oct 2026 in “Local Indexing to reduce tool calling and token usage”

“Grep can cut through almost any code base. The problem is that grep is lexical. It is dumb.”

MixedComment from 12 Oct 2026 in “Local Indexing to reduce tool calling and token usage”

“grep is better than almost anything else you can use. It's very very fast and efficient”

RecommendsComment from 12 Oct 2026 in “Local Indexing to reduce tool calling and token usage”

“I'm leaning heavily into grep and search tools to navigate code”

RecommendsComment from 27 Sep 2026 in “How to keep enjoying programming in a world of LLMs”

“Agents love standing on the shoulders of good crystalized cognition (grep, curl etc)”

RecommendsComment from 25 Sep 2026 in “What About Rails?”

“the Linux `find` and `grep` commands usually can find stuff much quicker than any 'accelerated' and 'cached' desktop search”

RecommendsComment from 15 Sep 2026 in “iOS 27, iPadOS 27, and macOS 27”

“giving an agent grep covers most of the use cases”

RecommendsComment from 4 Sep 2026 in “Corporate America is getting hooked on open-source AI”

“ossification of grep's core features (a good thing)”

RecommendsComment from 4 Sep 2026 in “Grep beats LSP? Why coding agents ignore your fancier tools”

“grep is pretty poorly suited to semantic search and will only return the most basic of matches”

CriticizesComment from 31 Aug 2026 in “Agent memory as a file format”

“grep and find in the terminal are much faster”

RecommendsComment from 9 Aug 2026 in “Windows 11's built-in Weather app wastes more than 1 GB of RAM”

“Access to a well-established set of tools for operating on unstructured text”

RecommendsComment from 23 Jul 2026 in “git's –end-of-options Flag”

“"diff old.txt new.txt | grep '^+'" will only show me added lines”

RecommendsComment from 16 Jun 2026 in “SpaceX to buy Cursor AI coding agent operator Anysphere for $60B”

“grep is fine if you don't care about tokens and you have less than 100k files”

MixedComment from 9 Jun 2026 in “Is Grep All You Need? How Agent Harnesses Reshape Agentic Search”

“It serves me better than an IDE when there’re lots of scattered and frequent queries.”

RecommendsComment from 9 Jun 2026 in “Is Grep All You Need? How Agent Harnesses Reshape Agentic Search”

“They still work exactly the same, and now even my agents can do it.”

RecommendsComment from 2 Jun 2026 in “Stop Ruining It”

“I never saw anyone crack the embedding-generation-and-comparison problems well enough to actually get better results than grep”

RecommendsComment from 28 May 2026 in “Tech CEOs are apparently suffering from AI psychosis”

“Claude reading hundreds of kilobytes of outputs because grep found things in node_modules”

CriticizesComment from 18 May 2026 in “Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep”

“It's very effective in well-written and well-designed code bases where concepts tend to be relatively well formed”

MixedComment from 27 Apr 2026 in “Show HN: OSS Agent I built topped the TerminalBench on Gemini-3-flash-preview”

“Grep is effective for the most part, except for situations like when you have huge codebases”

MixedComment from 27 Apr 2026 in “Show HN: OSS Agent I built topped the TerminalBench on Gemini-3-flash-preview”

“It is surprisingly sparing on tokens, which makes sense since those things were designed to work with a teletype.”

RecommendsComment from 23 Apr 2026 in “Introducing GPT-5.5”

“you can probably grep into a file, eliminate false positive cases”

RecommendsComment from 21 Apr 2026 in “Less human AI agents, please”

“There's no need to "understand" "names like grep"; you learn it as a language like any other.”

MixedComment from 21 Apr 2026 in “Sudo for Windows”

“I use grep multiple times per day, works great, I've seen no need to change.”

RecommendsComment from 14 Apr 2026 in “What is jj and why should I care?”

“Claude Code would be far less useful without grep, diff, git, head”

RecommendsComment from 29 Mar 2026 in “Coding Agents Could Make Free Software Matter Again”

“grep with LC_ALL=C - is much, much faster than any aggregation tool”

RecommendsComment from 27 Mar 2026 in “A Faster Alternative to Jq”

“Well grep is just better sometimes. Like you want to copy some lines and grep at the end of a pipeline is just easier”

RecommendsComment from 27 Mar 2026 in “A Faster Alternative to Jq”

“I use "grep" to search files (it should never skip any unless I tell it to do otherwise)”

RecommendsComment from 24 Mar 2026 in “Ripgrep is faster than {grep, ag, Git grep, ucg, pt, sift}”

“assuming your encoding is Unicode (normally UTF-8), which grep would interpret”

RecommendsComment from 15 Mar 2026 in “Glassworm Is Back: A New Wave of Invisible Unicode Attacks Hits Repositories”

“`grep -P` kinda annoying. GNU has Perl-compatible regex, and BSD does not.”

CriticizesComment from 13 Mar 2026 in “"This Is Not the Computer for You"”

“The ones that survive decades (Make, grep, curl) do one thing and compose well”

RecommendsComment from 5 Mar 2026 in “Good software knows when to stop”

“Three tools born in Bell Labs that still power every server, every pipeline”

RecommendsComment from 26 Feb 2026 in “Grep, Sed, Awk – The Unix Text Processing Trinity”

“widely used both as tools and as "semantic primitives"”

RecommendsComment from 26 Feb 2026 in “I made MCP cheaper in one command”

“Annoyingly `--color=auto` can change the representation of the characters so when you run again there's a mismatch.”

MixedComment from 10 Feb 2026 in “Start all of your commands with a comma”

“running grep through millions of files if you use maildir or a similar format takes forever”

CriticizesComment from 5 Feb 2026 in “Msgvault: fast private email archive and search system”

“find and grep do similar things but work entirely differently and their args aren't even in the same format”

CriticizesComment from 25 Dec 2025 in “Snitch – A friendlier ss/netstat”

“Grep is 50 years old and still does exactly what we need.”

RecommendsComment from 23 Dec 2025 in “We removed 80% of our agent's tools”

“grep is all right, but sometimes I need to tease out a complex data relationship.”

MixedComment from 22 Dec 2025 in “Logging sucks”

“Despite the insane volume we made this work really well using just grep and other basic CLI tools.”

RecommendsComment from 21 Dec 2025 in “Logging sucks”

“plain shell scripts, sed, awk, grep and xargs”

RecommendsComment from 7 Dec 2025 in “Perl's decline was cultural”

“agents are insanely good at grep. So much so that I've been trying to figure out how to create an llmgrep tool”

RecommendsComment from 28 Nov 2025 in “Beads – A memory upgrade for your coding agent”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.