Find and Replace in the Terminal.

notes about find and replace techniques

grepr #

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

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

grepd #

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

CocSearch #

:CocSearch published: false -g *.md

Connections

Related tags and posts connected to this entry.