tags:

views:

145

answers:

1

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?

+2  A: 

You have it backward. It's "yes | rm -r trunk", but the better command would be to have rm not ask you in the first place with rm -rf trunk.

Andrew
This will also remove the directories themselves (rm does not do this by default). However, I'd wager that's usually what you want anyway.
Michael Madsen