There’s an interesting Unix command called the yes command.
yes- output a string repeatedly until killed
Without arguments it repeatedly prints ‘y’.
yes no yes outputs.
Yes is designed for automated input to prompts from interactive scripts, e.g.
yes | rm -i foo
So you don’t have to pull off a Homer.
It can also be used for simple load testing since it has high CPU usage.
Yes is part of GNU coreutils and is still being maintained.