Stack Gems
Menu
← Catalog

sd

MIT intentional sed subset — search & displace

Rust / Terminal · OSS/MIT · 7.4k

Reviewed 2026-09-12 · last push 2026-02-25 · repo checked 2026-10-19

What's Good

MIT. chmln/sd. Literal-first (and regex) search & displace with a short CLI, preview (`-p`), and sensible escaping. Complements ripgrep/fd for the replace step after you found the hit. Source github.com/chmln/sd.

The Catch

Vs sed: intentional *subset*, not a full sed dialect — no sed scripts, hold space, or every GNU extension. Vs ripgrep (search) and fd (names): sd *rewrites*, it does not search a tree or find filenames. Keep sed for the ancient one-liners that already work.

Verdict

MIT sed subset. Free forever; replace text without relearning sed.

Embed

Maintainer? Add the badge to your README. It is free, links to this review, and there is no paid version.

Reviewed on Stack Gems

Markdown

[![Reviewed on Stack Gems](https://stackgems.com/badge/sd.svg)](https://stackgems.com/gems/sd)

HTML

<a href="https://stackgems.com/gems/sd"><img src="https://stackgems.com/badge/sd.svg" alt="sd reviewed on Stack Gems" height="20"></a>

Related

Rust →