> For the complete documentation index, see [llms.txt](https://til.devjugal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.devjugal.com/linux/grep/grep-on-continous-stream.md).

# Grep On Continous Stream

We can use `--line-buffered` argument in `grep` command.

## Usage

```bash
tail -f file | grep --line-buffered my_pattern
```

***Source:*** [***StackOverFlow***](https://stackoverflow.com/a/7162898)
