On Tue, 14 Feb 2006, noob lenoobie wrote: > On Mon, 13 Feb 2006, Matthias Kilian wrote: > >(b) pipeing to xargs(1) may be faster. > > Why so many people is using xargs ? > > I mean for instance why bother use xargs AND a pipe to do somthing like this > : > > find ./ -type f -print | xargs -i rm -f > Instead of > rm -f $(find ./ -type f -print)
Because that will fail when there are too many arguments, and will probably break on filenames with spaces (use xargs -0 for these). -d