sd

Intuitive find and replace CLI tool with regex support

brewmacoslinux
Try with needOr install directly
Source

About

Intuitive find & replace CLI

Commands

sd

Examples

Replace simple text in a file$ sd 'old_text' 'new_text' file.txt
Replace using regex pattern with flags$ sd -f m 'pattern(\d+)' 'replacement_$1' file.txt
Replace in-place across multiple files$ sd 'search' 'replace' *.txt