Unable to use yes -command to all questions when removing
I get a long list of read-only protected files when I run
rm -r trunk | yes
I am trying to answer yes to all by one command.
How can you answer yes to all questions?
You have it backward, the correct way is:
yes | rm -r trunk
But the better command would be to have rm
not ask you in the first place with:
rm -rf trunk