Unix Technical Forum

Re: xargs PF or BPF

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 ? > > > ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.misc

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-17-2008, 05:05 PM
Ted Unangst
 
Posts: n/a
Default Re: xargs PF or BPF

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 --.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:38 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com