From LQWiki
yes is a command that just outputs a string repeatedly. The default string is "y" if no other string is given as the command argument.
It can be useful in scripts to run interactive commands.
For example:
$ yes | rm -i /tmp
This will run the rm -i and send 'y' to all the questions (yes it's a silly example)

This page is available under a