When I do
rm file.txt
or
rm *.txt
I'm prompted for each file, since I didn't specify the -f
option to rm
.
But when I do this:
find . -type f -name '*.txt' | xargs rm
the files are removed without the confirmation.
What is the logics behind this? Is it possible to find the reason in some documentation? I cannot explain why this would be the case.
alias rm
gives the outputrm -i
, so that explains it. Thanks – Cutworm