Find and Replace in the Terminal.

notes about find and replace techniques

Copy this post

grepr #

Terminalbash
grepr() {grep -iRl "$1" | xargs sed -i "s/$1/$2/g"}

```bash
grepr() {grep -iRl "$1" | xargs sed -i "s/$1/$2/g"}

grepd #

python
grepd() {grep -iRl "$1" | xargs sed -i "/^$1/d"}

CocSearch #

Terminalbash
:CocSearch published: false -g *.md