---
title: "Find and Replace in the Terminal."
description: "notes about find and replace techniques"
date: 2020-11-12
published: true
tags:
  - linux
  - bash
template: blog-post
---


## grepr

````bash
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

```bash
:CocSearch published: false -g *.md
```
