Search notes:

Shell command: yes

yes repeatedly prints a string (by default: y) until it is killed.
The string to be written can be defined with the first parameter:
$ yes 'hello world' | head -5
hello world
hello world
hello world
hello world
hello world

See also

Shell commands

Index