TopGit tracks chmln/sd on GitHub as part of the Developer Tools family. The project has 7.4k stars. Intuitive find & replace CLI (sed alternative)
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Painless regular expressions.sd uses regex syntax that you already know from JavaScript and Python. Forget about dealing with quirks of sed or awk - get productive immediately.
String-literal mode. Non-regex find & replace. No more backslashes or remembering which characters are special and need to be escaped.
Easy to read, easy to write. Find & replace expressions are split up, which makes them easy to read and write. No more messing with unclosed and escaped slashes.
Smart, common-sense defaults. Defaults follow common sense and are tailored for typical daily use.
Comparison to sed
While sed does a whole lot more, sd focuses on doing just one thing and doing it well. Here are some cherry-picked examples where sd shines.
Simpler syntax for replacing all occurrences:
sd: sd before after
sed: sed s/before/after/g
Replace newlines with commas:
sd: sd -A '\n' ','
sed: sed ':a;N;$!ba;s/\n/,/g'
Note: this requires -A (across mode) since \n is a cross-line pattern.
Extracting stuff out of strings containing slashes:
sd: echo "sample with /path/" | sd '.*(/.*/)' '$1'
sed: echo "sample with /path/" | sed -E 's/.*(\\/.*\\/)/\1/g'
With sed, you can make it better with a different delimiter,
but it is still messy:
echo "sample with /path/" | sed -E 's|.*(/.*/)|\1|g'
In place modification of files:
sd: sd before after file.txt
sed: sed -i -e 's/before/after/g' file.txt
With sed, you need to remember to use -e or else some
platforms will consider the next argument to be a backup suffix.
sd will interpret every argument starting with - as a (potentially unknown) flag.
The common convention of using -- to signal the end of flags is respected:
$ echo "./hello foo" | sd "foo" "-w"
error: Found argument '-w' which wasn't expected, or isn't valid in this context
USAGE:
sd [OPTIONS] <find> <replace-with> [files]...
For more information try --help
$ echo "./hello foo" | sd "foo" -- "-w"
./hello -w
$ echo "./hello --foo" | sd -- "--foo" "-w"
./hello -w
Processing modes
By default, sd processes input line by line. This means:
Low memory usage (only one line in memory at a time)
Streaming output for stdin (results appear before EOF)
^ and $ match the start/end of each line without phantom matches
\s+$ trims trailing whitespace without eating newlines
If you need patterns to match across line boundaries (e.g. replacing \n or matching multi-line patterns), use the -A / --across flag:
> echo -e "hello\nworld" | sd -A '\n' ','
hello,world
The most recent commit recorded on chmln/sd was 9 months ago, based on the GitHub push timestamp. The repository has 176 forks — one of the better signals of community interest.
How does chmln/sd compare to other Developer Tools projects?
chmln/sd is tracked by TopGit in the Developer Tools category, with 7.4k GitHub stars and written in Rust. Browse the Developer Tools topic page on TopGit to compare it against similar projects by stars and activity.
How many stars does chmln/sd have?
chmln/sd has 7.4k GitHub stars — refresh the page for the live number, or check github.com/chmln/sd. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What is chmln/sd?
chmln/sd (chmln/sd) is a Rust project on GitHub. From the project's own README: Intuitive find & replace CLI (sed alternative)
What language is chmln/sd written in?
chmln/sd is written primarily in Rust. GitHub's language field is based on the largest share of bytes in the default branch.
What topics is chmln/sd associated with?
GitHub's repository topics for chmln/sd: "cli", "command-line", "regex", "rust", "terminal", "text-processing". TopGit's editorial category is Developer Tools.
Why is chmln/sd categorized under Developer Tools?
TopGit places chmln/sd in the Developer Tools category based on its GitHub topics and description (tagged: "cli", "command-line", "regex"). Categories are assigned from real repository metadata, not editorial guesswork.
Read full README in the tab above.
Is sd worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of sd.