% del *
Remove file1? y
Remove file2? y
...
If you answer y, then the file will be deleted.
What if you want to run a command that will ask you 200 questions and
you want to answer y to all of them, but you
don't want to type all those y s
from the keyboard? Pipe the output of yes to the
command; it will answer y for you:
% yes | del *
Remove file1?
Remove file2?
...
If you want to answer n to all the questions, you
can do:
% yes n | del *