On Thu, Nov 01, 2007 at 04:03:20PM -0700, Michael G Schwern wrote: > > $ find . -print0 -name '*.txt' | xargs -0 rm
I hates xargs. It has its place I guess, but this ain't it, and souping up GNU find to (try to, sometimes) feed nice path names to xargs seems only to have made GNU find that much more hateful. Since I learned how to make -exec do my bidding, I think I can count on one hand the number of times I've had to hate xargs. Efficiency be damned. But yeah, you do want to put it after any test conditions... ...or, hate zsh, and wrap your find command in a $() subshell, but with zsh you get a whole new book of hates to read from into the wee hours. I'm not going to get started, it's my turn to cook dinner tonight.