# grep

say it: **“GREP”** **/ˈɡrɛp/**

Searches text for lines matching a pattern.

## What does `grep` do?

`grep` searches text for lines that match a pattern. `-i` ignores case; `-r` searches every file in a folder.

```bash
grep "error" app.log
grep -ri "todo" src/
```

Level: Apprentice · [More Unix terms at this level](https://www.ask-codey.com/glossary?category=unix&level=2)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/grep
