yes
v(uutils coreutils) 0.8.0
yes [STRING]...
Repeatedly display a line with STRING (or ‘y’)
Options
Examples
Repeatedly output y:
yes
Repeatedly output a specified value:
yes {{value}}
Accept everything prompted by the apt-get command:
yes | sudo apt-get install {{program}}
Repeatedly output a newline to always accept the default option of a prompt:
yes ''
The examples are provided by the tldr-pages project under the CC BY 4.0 License.
Please note that, as uutils is a work in progress, some examples might fail.