yes - a UNIX command that infinitely displays command line arguments separated by spaces until it is killed (for example, by the kill command). If no arguments are given on the command line, then endlessly prints the string "y".
For example, the following command
rm -f * .txt
equivalent to
yes | rm * .txt