> 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/bash/yes.md).

# Yes

yes - output a string repeatedly until killed

> Repeatedly output a line with all specified STRING(s), or 'y'.

## Usage

* Print y repeatedly

```bash
yes
```

* Print y repeatedly & pipe to a command

```bash
yes | apt-get upgrade
```

* Print custom string & pipe to a command

```bash
yes "n" | apt-get upgrade
```

**Reference(s)**

* [Man7](https://man7.org/linux/man-pages/man1/yes.1.html)
