# grep — find lines matching a pattern

`grep` — find lines matching a pattern.

## Example

```bash
grep error log.txt
```

## Flags

- `0` — [object Object]
- `1` — [object Object]
- `2` — [object Object]

This site also runs the command in a browser terminal simulator, so the examples above
can be typed and executed without installing anything.

Source: https://zero2vibecode.com/commands/grep
