This is a discussion on Re: xargs PF or BPF within the lucky.openbsd.misc forums, part of the OpenBSD category; --> On 2/13/06, Damien Miller <djm@mindrot.org> wrote: > > Why so many people is using xargs ? > > > ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| On 2/13/06, Damien Miller <djm@mindrot.org> 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 --. |