sad
CLI search and replace with preview, powered by diff
Search & Grep
Python
replaces sed
sad is a CLI tool for batch file search and replace. It shows a diff preview before making changes and integrates with fd and ripgrep.
Install
brew
brew install sad
Related Tools
ack
A grep-like tool designed for searching source code
ast-grepA fast and polyglot tool for code structural search and rew…
grepThe classic Unix pattern matching utility
ripgrepBlazingly fast recursive search tool that respects gitignore
sdIntuitive find & replace CLI, a sed alternative
The Silver SearcherA code searching tool similar to ack, but faster
ugrepUltra fast grep with interactive TUI, fuzzy search, and more