# chmln/sd

Intuitive find & replace CLI (sed alternative)

Repository: https://github.com/chmln/sd
Canonical: https://ross.abutalabs.com/products/sd
Language: Rust
License: MIT
License Family: permissive
Topics: command-line, rust, terminal, text-processing, regex, cli
Last push: 2026-02-25T19:26:21+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 69, release rhythm 40, longevity 100
- inputs: {"age_days": 2810, "days_push": 189, "days_rel": 189, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7326, forks 167 (observed 2026-08-28T04:09:58.233816+00:00)

## What it is
sd is an intuitive find & replace command-line tool written in Rust, designed as a simpler, faster alternative to sed. It uses familiar JavaScript/Python-style regex syntax, offers a string-literal mode, and is significantly faster than sed on large files.

## Use cases
- find and replace text in files from the command line
- replace text across multiple lines in a file
- batch replace strings in large files quickly
- extract substrings using regex capture groups
- do in-place text substitution without sed quirks
- find and replace literal strings without escaping special characters

## When to choose
- you want simpler, more readable find & replace syntax than sed
- you need fast text replacement on very large files
- you prefer JavaScript/Python-style regex over sed's quirks
- you need multi-line (across-line) replacements
- you want painless in-place file editing from the terminal

## When to avoid
- you need sed's full scripting capabilities like line addressing or holding buffers
- you are in an environment where installing Rust-based tools is not possible
- you need a POSIX-standard tool guaranteed on every Unix system
- your workflow already depends heavily on sed scripts

## Facets
- artifact type: cli-tool
- maturity: stable
- function: parser, developer-tools, cli
- domain: developer-tools, text-editors
- platform: cli, windows, rust
- tags: sed-alternative, find-and-replace, regex, text-processing, command-line, linux, macos

## Member repositories
- chmln/sd (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:58.233816+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:38:38.623393+00:00, confidence not recorded.
  - readme: https://github.com/chmln/sd (fetched 2026-08-28T04:09:58.233816+00:00, sha daaa49894da8)
  - registry_crates: https://crates.io/api/v1/crates/sd (fetched 2026-08-29T08:33:53.978503+00:00, sha aadb8ea9fc6e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
