On 2/13/06, Damien Miller <[EMAIL PROTECTED]> wrote:
> > 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).

with either version, hilarity is sure to ensue when you discover an
accidentally created -r file.  always use --.

Reply via email to