All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

sd: Intuitive Command-Line Find and Replace Tool as sed Alternative

By

jcbhmr

9mo ago· 3 min readenCode

Summary

sd is an intuitive command-line tool for find and replace operations, designed as a modern alternative to sed and awk. It offers painless regular expressions using familiar JavaScript/Python syntax, string-literal mode for non-regex operations, and easy-to-read expressions without complex escaping requirements. The tool aims to improve developer productivity with a cleaner, more user-friendly interface for text manipulation tasks.

Key quotes

· 4 pulled
Painless regular expressions. sd uses regex syntax that you already know from JavaScript and Python
String-literal mode. Non-regex find & replace. No more backslashes or remembering which characters are special
Easy to read, easy to write. Find & replace expressions are split up, which makes them easy to read and write
Why use it over any existing tools? Forget about dealing with quirks of sed or awk - get productive immediately
Snippet from the RSS feed
Intuitive find & replace CLI (sed alternative). Contribute to chmln/sd development by creating an account on GitHub.

You might also wanna read