yes - output a string repeatedly until killed.
Enter "yes" to each prompt automatically:
yes | rm -i *.txt
Enter "no" to each prompt automatically:
yes n | rm -i *.txt
Display yes command help:
yes --help
Display yes command version:
yes --version