grep
Hacker ApprovedRanked 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%
Recommended in 12 of 13 months
- November 2025: recommended
- December 2025: recommended
- January 2026: recommended
- February 2026: recommended
- March 2026: recommended
- April 2026: recommended
- May 2026: recommended
- June 2026: recommended
- July 2026: recommended
- August 2026: recommended
- September 2026: recommended
- October 2026: recommended
- 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” - Comment from 9 Aug 2026 in “Windows 11's built-in Weather app wastes more than 1 GB of RAM”
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” - Comment from 7 Dec 2025 in “Perl's decline was cultural”
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” - Comment from 4 Sep 2026 in “Grep beats LSP? Why coding agents ignore your fancier 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” - Comment from 4 Sep 2026 in “Corporate America is getting hooked on open-source AI”
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.
| Product | Recommend | Criticize | Approval | Months | Owned | Badge |
|---|---|---|---|---|---|---|
| fzf | 78 | 5 | 94% | 12 | — | Approved |
| jq | 75 | 33 | 69% | 12 | — | Approved |
| grepThis page | 65 | 19 | 77% | 12 | — | Approved |
| Atuin | 63 | 24 | 72% | 11 | 2 yrs4 owners | Approved |
| GitHub CLI | 49 | 45 | 52% | 12 | — | — |
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”
“Grep can cut through almost any code base. The problem is that grep is lexical. It is dumb.”
“grep is better than almost anything else you can use. It's very very fast and efficient”
“I'm leaning heavily into grep and search tools to navigate code”
“Agents love standing on the shoulders of good crystalized cognition (grep, curl etc)”
“the Linux `find` and `grep` commands usually can find stuff much quicker than any 'accelerated' and 'cached' desktop search”
“giving an agent grep covers most of the use cases”
“ossification of grep's core features (a good thing)”
“grep is pretty poorly suited to semantic search and will only return the most basic of matches”
“grep and find in the terminal are much faster”
“Access to a well-established set of tools for operating on unstructured text”
“"diff old.txt new.txt | grep '^+'" will only show me added lines”
“grep is fine if you don't care about tokens and you have less than 100k files”
“It serves me better than an IDE when there’re lots of scattered and frequent queries.”
“They still work exactly the same, and now even my agents can do it.”
“I never saw anyone crack the embedding-generation-and-comparison problems well enough to actually get better results than grep”
“Claude reading hundreds of kilobytes of outputs because grep found things in node_modules”
“It's very effective in well-written and well-designed code bases where concepts tend to be relatively well formed”
“Grep is effective for the most part, except for situations like when you have huge codebases”
“It is surprisingly sparing on tokens, which makes sense since those things were designed to work with a teletype.”
“you can probably grep into a file, eliminate false positive cases”
“There's no need to "understand" "names like grep"; you learn it as a language like any other.”
“I use grep multiple times per day, works great, I've seen no need to change.”
“Claude Code would be far less useful without grep, diff, git, head”
“grep with LC_ALL=C - is much, much faster than any aggregation tool”
“Well grep is just better sometimes. Like you want to copy some lines and grep at the end of a pipeline is just easier”
“I use "grep" to search files (it should never skip any unless I tell it to do otherwise)”
“assuming your encoding is Unicode (normally UTF-8), which grep would interpret”
“`grep -P` kinda annoying. GNU has Perl-compatible regex, and BSD does not.”
“The ones that survive decades (Make, grep, curl) do one thing and compose well”
“Three tools born in Bell Labs that still power every server, every pipeline”
“widely used both as tools and as "semantic primitives"”
“Annoyingly `--color=auto` can change the representation of the characters so when you run again there's a mismatch.”
“running grep through millions of files if you use maildir or a similar format takes forever”
“find and grep do similar things but work entirely differently and their args aren't even in the same format”
“Grep is 50 years old and still does exactly what we need.”
“grep is all right, but sometimes I need to tease out a complex data relationship.”
“Despite the insane volume we made this work really well using just grep and other basic CLI tools.”
“plain shell scripts, sed, awk, grep and xargs”
“agents are insanely good at grep. So much so that I've been trying to figure out how to create an llmgrep tool”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.