Hacker ApprovedDepartments

sed

Hacker Approved

Ranked 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%
Each figure is one person. RecommendsCriticizes

Recommended in 11 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: not recommended
  12. October 2026: recommended
  13. 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”
  • 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”
  • 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.

sed compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
fzf78594%12—Approved
jq753369%12—Approved
grep651977%12—Approved
Atuin632472%112 yrs4 ownersApproved
sedThis page351373%11—Approved
See all 86 privilege escalation tools, ranked

What 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.”

CriticizesComment from 28 Oct 2026 in “Code-execution flaw in UEFI firmware threatens most servers on planet Earth”

“Assuming you have run brew install gnutools on your Mac that should enable local dev for scripts that run on Linux.”

RecommendsComment from 11 Oct 2026 in “How big is a Git commit?”

“the functional equivalent of find . -iname '*.csproj' | xargs sed -E -i.bak”

RecommendsComment from 8 Oct 2026 in “Meta and Microsoft take steps to reduce employee usage of Claude AI”

“sed might take several attempts to get results”

CriticizesComment from 11 Sep 2026 in “Astra for Coding: Why Are We Doing This Again?”

“thinking about pattern matching is fun, it's a little puzzle solved with a skillset that transfers to other cli tools”

RecommendsComment from 10 Aug 2026 in “Learning Sed or Using Claude?”

“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”

“knowing a bit awk, perl and sed might help as well, as they tend to be available by default.”

RecommendsComment from 21 Jul 2026 in “I wrote an bash enumerator because I was sick of xargs”

“well established and solid unix toolchain”

RecommendsComment from 10 Jul 2026 in “Good Tools Are Invisible”

“Don't need much more'n that to get yerself into all kinda trouble”

RecommendsComment from 5 Jul 2026 in “Mouse: Precision Editing Tools for AI Coding Agents”

“these don't work in macOS/BSD sed (even with -E flag)”

CriticizesComment from 28 Jun 2026 in “Regular expressions that work "everywhere"”

“you can immediately reuse the command on a different file”

RecommendsComment from 18 Jun 2026 in “Emacs 31 Is Around the Corner: The Changes I'm Daily Driving”

“sed has different syntax on macos because macos is based on BSD.”

CriticizesComment from 4 Jun 2026 in “MacBook Neo Is So Popular That Apple Doubled Production”

“does that really mean that sed is the highly optimized path?”

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

“When I code I stream via sed for maximum efficiency.”

RecommendsComment from 30 Apr 2026 in “Tell HN: VS Code v1.117.0 automatically adds GitHub Copilot as your co author”

“then do a bit of awk or shell scripting with sed”

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

“The best part about sed is that it can generally be found in any *nix system.”

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

“g/PATTERN/ and /v/PATTERN/ are supzr powerful”

RecommendsComment from 24 Mar 2026 in “Sed, a powerfull mini-language from the 70s”

“Mostly it's useful in my experience on systems without Perl installed”

RecommendsComment from 23 Mar 2026 in “Sed, a powerfull mini-language from the 70s”

“I wish I'd invested that effort in learning perl oneliners instead”

CriticizesComment from 23 Mar 2026 in “Sed, a powerfull mini-language from the 70s”

“sed is something everyone had to learn, even if they did not realize it”

RecommendsComment from 23 Mar 2026 in “Sed, a powerfull mini-language from the 70s”

“bash and sed and suchlike turn out to be the most useful tools for unlocking the abilities of AI agents”

RecommendsComment from 12 Mar 2026 in “JSLinux Now Supports x86_64”

“or even shelling out to sed) is often a better choice”

RecommendsComment from 7 Mar 2026 in “Helix: A post-modern text editor”

“I do actually use sed since it is so convenient but I am not the biggest fan of it either”

MixedComment from 4 Mar 2026 in “Nobody Gets Promoted for Simplicity”

“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”

“can accomplish in a few readable lines what people write long programs to handle in other languages”

RecommendsComment from 24 Feb 2026 in “The Missing Semester of Your CS Education”

“Not with sed and awk they aren't.”

RecommendsComment from 31 Jan 2026 in “How to Choose Colors for Your CLI Applications”

“which is a whole programming language well suited for templating”

RecommendsComment from 26 Jan 2026 in “A static site generator written in POSIX shell”

“it probably runs faster than the original sed after compilation.”

RecommendsComment from 18 Jan 2026 in “Sed-bin: a sed to C translator written in sed”

“Sed and awk are the ideal way to manipulate structured data!”

CriticizesComment from 31 Dec 2025 in “Win32 is the stable Linux ABI”

“even my 13 year old great nephew can do this without ai”

RecommendsComment from 13 Dec 2025 in “Gemini with Thinking 3 Pro can't script multi-line string replacement”

“Mutating a file in place, and needing a GNU extension for it.”

CriticizesComment from 13 Dec 2025 in “Using Python for Scripting”

“sed, awk; all better than the crap they have spawned”

RecommendsComment from 11 Dec 2025 in “My productivity app is a never-ending .txt file (2020)”

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

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

“I still have to do a search (or use an LLM) to do anything useful with sed, xargs, etc.”

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

“stuff that awk/sed won't cut it for”

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

“I've had more trouble, including bugs, with other utilities, like sed, tr, paste, etc.”

CriticizesComment from 20 Nov 2025 in “A surprise with how '#!' handles its program argument in practice”

“Some that aren't replaceable with bash (and sed and awk).”

MixedComment from 19 Nov 2025 in “What Killed Perl?”

“sed is a time-saver, enabling computer users to make the most of the time they have left”

RecommendsComment from 15 Nov 2025 in “Awk Technical Notes (2023)”

“awk is so much better than sed to learn”

MixedComment from 14 Nov 2025 in “Awk Technical Notes (2023)”

“Sed was also a really strong tool.”

RecommendsComment from 14 Nov 2025 in “Awk Technical Notes (2023)”

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