sd: A Blazing Fast CLI Find & Replace Utility

2025-09-02
sd: A Blazing Fast CLI Find & Replace Utility

sd is an intuitive command-line find and replace tool that's significantly faster and easier to use than sed and awk. It leverages regex syntax familiar from JavaScript and Python, offering a string-literal mode to avoid escaping hassles. sd boasts a clean, readable syntax and common-sense defaults. Its speed advantage is particularly noticeable with large files (e.g., a 1.5GB JSON file), outperforming sed by factors of 2.35x and even 11.93x. Features include in-place file modification, previewing changes, cross-project search and replace, and rich regex support, including capture groups and named capture groups. Install sd via cargo or various package managers.

Development