sed
Hacker ApprovedRanked 7 of 86 privilege escalation tools by recommenders
Built-in Unix stream editor for find-and-replace and text edits in scripts and pipelines, valued for ubiquity and terse one-liners. Caveat: macOS BSD and GNU versions differ in syntax.
Built-in Unix stream editor for find-and-replace and text edits in scripts and pipelines, valued for ubiquity and terse one-liners. Caveat: macOS BSD and GNU versions differ in syntax.
48 people gave an opinion
- recommend it
- 35
- criticize it
- 13
- approval share
- 73%
Recommended in 11 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: not recommended
- October 2026: recommended
- November 2026: not recommended (month in progress)
Why it carries the badge
- 35 people recommend itNeeds 10 or more, met.
- 2.7 recommenders for every criticNeeds 2 to 1 or better, met.
- Recommended in 11 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
Reusable in pipelines and scripts
“the functional equivalent of find . -iname '*.csproj' | xargs sed -E -i.bak”
Comment from 8 Oct 2026 in “Meta and Microsoft take steps to reduce employee usage of Claude AI” “you can immediately reuse the command on a different file”
Comment from 18 Jun 2026 in “Emacs 31 Is Around the Corner: The Changes I'm Daily Driving” “When I code I stream via sed for maximum efficiency.”
Comment from 30 Apr 2026 in “Tell HN: VS Code v1.117.0 automatically adds GitHub Copilot as your co author” - Comment from 21 Apr 2026 in “Less human AI agents, please”
- Comment from 7 Dec 2025 in “Perl's decline was cultural”
Available on nearly every Unix system
“knowing a bit awk, perl and sed might help as well, as they tend to be available by default.”
Comment from 21 Jul 2026 in “I wrote an bash enumerator because I was sick of xargs” “The best part about sed is that it can generally be found in any *nix system.”
Comment from 25 Mar 2026 in “Ripgrep is faster than {grep, ag, Git grep, ucg, pt, sift}” “Mostly it's useful in my experience on systems without Perl installed”
Comment from 23 Mar 2026 in “Sed, a powerfull mini-language from the 70s” Well-established tool for text processing
“Access to a well-established set of tools for operating on unstructured text”
Comment from 23 Jul 2026 in “git's –end-of-options Flag” “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” “well established and solid unix toolchain”
Comment from 10 Jul 2026 in “Good Tools Are Invisible” Skills transfer to other tools
“thinking about pattern matching is fun, it's a little puzzle solved with a skillset that transfers to other cli tools”
Comment from 10 Aug 2026 in “Learning Sed or Using Claude?” “sed is something everyone had to learn, even if they did not realize it”
Comment from 23 Mar 2026 in “Sed, a powerfull mini-language from the 70s”
What people warn about
Each mark is one comment
Differs between BSD and GNU versions
“GNU programs do lots of things poorly, starting with "echo -e" and "cat -n" and continuing through to tools like awk and sed.”
Comment from 28 Oct 2026 in “Code-execution flaw in UEFI firmware threatens most servers on planet Earth” “sed has different syntax on macos because macos is based on BSD.”
Comment from 4 Jun 2026 in “MacBook Neo Is So Popular That Apple Doubled Production” “Mutating a file in place, and needing a GNU extension for it.”
Comment from 13 Dec 2025 in “Using Python for Scripting” - Comment from 28 Jun 2026 in “Regular expressions that work "everywhere"”
Hard to remember syntax
“I still have to do a search (or use an LLM) to do anything useful with sed, xargs, etc.”
Comment from 7 Dec 2025 in “Perl's decline was cultural” “sed might take several attempts to get results”
Comment from 11 Sep 2026 in “Astra for Coding: Why Are We Doing This Again?” awk or Perl often preferred
“I wish I'd invested that effort in learning perl oneliners instead”
Comment from 23 Mar 2026 in “Sed, a powerfull mini-language from the 70s” “awk is so much better than sed to learn”
Comment from 14 Nov 2025 in “Awk Technical Notes (2023)”
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.
See all 86 privilege escalation tools, rankedWhat people said
40 of the 49 comments that mention it, newest first. Each links to the original comment.
“GNU programs do lots of things poorly, starting with "echo -e" and "cat -n" and continuing through to tools like awk and sed.”
“Assuming you have run brew install gnutools on your Mac that should enable local dev for scripts that run on Linux.”
“the functional equivalent of find . -iname '*.csproj' | xargs sed -E -i.bak”
“sed might take several attempts to get results”
“thinking about pattern matching is fun, it's a little puzzle solved with a skillset that transfers to other cli tools”
“Access to a well-established set of tools for operating on unstructured text”
“knowing a bit awk, perl and sed might help as well, as they tend to be available by default.”
“well established and solid unix toolchain”
“Don't need much more'n that to get yerself into all kinda trouble”
“these don't work in macOS/BSD sed (even with -E flag)”
“you can immediately reuse the command on a different file”
“sed has different syntax on macos because macos is based on BSD.”
“does that really mean that sed is the highly optimized path?”
“When I code I stream via sed for maximum efficiency.”
“then do a bit of awk or shell scripting with sed”
“The best part about sed is that it can generally be found in any *nix system.”
“g/PATTERN/ and /v/PATTERN/ are supzr powerful”
“Mostly it's useful in my experience on systems without Perl installed”
“I wish I'd invested that effort in learning perl oneliners instead”
“sed is something everyone had to learn, even if they did not realize it”
“bash and sed and suchlike turn out to be the most useful tools for unlocking the abilities of AI agents”
“or even shelling out to sed) is often a better choice”
“I do actually use sed since it is so convenient but I am not the biggest fan of it either”
“Three tools born in Bell Labs that still power every server, every pipeline”
“can accomplish in a few readable lines what people write long programs to handle in other languages”
“Not with sed and awk they aren't.”
“which is a whole programming language well suited for templating”
“it probably runs faster than the original sed after compilation.”
“Sed and awk are the ideal way to manipulate structured data!”
“even my 13 year old great nephew can do this without ai”
“Mutating a file in place, and needing a GNU extension for it.”
“sed, awk; all better than the crap they have spawned”
“plain shell scripts, sed, awk, grep and xargs”
“I still have to do a search (or use an LLM) to do anything useful with sed, xargs, etc.”
“stuff that awk/sed won't cut it for”
“I've had more trouble, including bugs, with other utilities, like sed, tr, paste, etc.”
“Some that aren't replaceable with bash (and sed and awk).”
“sed is a time-saver, enabling computer users to make the most of the time they have left”
“awk is so much better than sed to learn”
“Sed was also a really strong tool.”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.