Submit a product

sad

command-line search and replace with a diff preview before writing changes

ToolCommand lineOpen source

sad is a command-line tool for finding and replacing text across files, in the spirit of sed. It is aimed at developers and people who work in a terminal and want to make bulk edits to code or config files without writing a script.

The tool shows the proposed changes as a diff so they can be reviewed before anything is written. It works with fzf for picking which hunks to apply. It is written in Rust, distributed under the MIT license, and the source code is public on GitHub.

Alternatives to sad

Products that do a similar job in Developer Tools.

All alternatives

Windows Terminal

Command-line terminal app and console host for Windows

ToolDeveloper Tools··Open source·106k

fzf

Command-line fuzzy finder for lists of files, history and any text

ToolDeveloper Tools··Open source·85k

lazygit

Terminal UI for running git commands with keyboard shortcuts

ToolDeveloper Tools··Open source·84k

Alacritty

GPU-accelerated terminal emulator for Linux, macOS, Windows and BSD

ToolDeveloper Tools··Open source·66k

bat

command-line file viewer with syntax highlighting and git integration

ToolDeveloper Tools··Open source·62k

GitHub CLI

Command line tool for working with GitHub from the terminal

ToolDeveloper Tools··Open source·47k

delta

syntax-highlighting pager for git, diff, blame and grep output

ToolDeveloper Tools··Open source·33k

Termux

Terminal emulator for Android with installable packages

ToolDeveloper Tools··Open source·66k