[plug] rm of contents

Cameron Patrick cameron at patrick.wattle.id.au
Sun Mar 16 20:00:55 WST 2003


On Sun, Mar 16, 2003 at 07:46:03PM +0800, Leon Brooks wrote:

| > find dir -type f -print0 | xargs -0 rm
| 
| find dir -type f -exec rm -f {} \;

Same thing, different meaning :P

| The -f is only needed if your system aliases rm with the -i option as a 
| prophylactic measure. To find out, type `alias rm' (no quotes) at a prompt.

I woulda thought that aliases don't matter as find and xargs don't run rm in
an interactive shell?

CP.



More information about the plug mailing list