https://github.com/sysread/sad
Search and replace text in files using PCRE-compatible regular expressions
https://github.com/sysread/sad
Last synced: 2 days ago
JSON representation
Search and replace text in files using PCRE-compatible regular expressions
- Host: GitHub
- URL: https://github.com/sysread/sad
- Owner: sysread
- License: mit
- Created: 2025-06-13T21:05:16.000Z (15 days ago)
- Default Branch: main
- Last Pushed: 2025-06-13T21:55:30.000Z (15 days ago)
- Last Synced: 2025-06-13T22:26:20.730Z (15 days ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SYNOPSIS
Search and replace text in files using PCRE-compatible regular expressions.# DESCRIPTION
`sad` allows you to interactively search and replace text in files using
PCRE-compatible regular expressions. Often, the ergonomics of combining
`grep`/`rg`/`ag`/`your-search-tool-of-choice`, `find`, `sed`, and `xargs` can
be, well, _cumbersome_.I got sick of all that and decided to simplify that crap for me. In the
process, I made sure that I could use real regexes, too.# DEPENDENCIES
- [ripgrep](https://github.com/BurntSushi/ripgrep)
- [gum](https://github.com/charmbracelet/gum)
- [fzf](https://github.com/junegunn/fzf)
- [perl](https://www.perl.org/) (but surely you have perl on your system already)# OPTIONS
- `-h`, `--help`: show help
- `-y`, `--yes`: skip confirmation prompts and auto-apply all changes
- `-d`, `--dry-run`: show what would be changed without actually changing anything# COPYRIGHT
Copyright (c) 2025, Jeff Ober