My bad, it does call rm with a single option each time. Just tested it.

On 1/28/08, andrew colin <[EMAIL PROTECTED]> wrote:
> Even without the -0 the options are passed at once to the command not
> one at a time.
>
> On 1/28/08, Peter C. Ndikuwera <[EMAIL PROTECTED]> wrote:
> > cut -d: -f1 < /etc/passwd | sort | xargs -0 echo
> >
> > the -ZERO indicates that the incoming fields are null terminated
> >
> >
> > On 28/01/2008, andrew colin <[EMAIL PROTECTED]> wrote:
> > > For give me if am wrong but i think i have experienced it be4 take a look
> > >
> > > cut -d: -f1 < /etc/passwd | sort | xargs echo -n
> > >
> > > and
> > >
> > > cut -d: -f1 < /etc/passwd | sort | xargs echo
> > >
> > > If xargs was called once for each line you would have a vertical line
> > > but both end up with horizontal listing.
> > >
> > >
> > >
> > > On 1/28/08, Peter C. Ndikuwera <[EMAIL PROTECTED]> wrote:
> > > > exactly. find . -type f | xargs rm -f is faster than the 'exec'
> > equivalent.
> > > >
> > > > In case your files have weird quotable characters, e.g. ` ' etc in them
> > (or
> > > > spaces) use:
> > > >     find . -type f -print0 | xargs -0 rm -f
> > > >
> > > >
> > > > On 28/01/2008, Noah K Sematimba <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Actually not. I actually use xargs and I am not sure there is a
> > difference
> > > > > between the two commands. AFAIK xargs actually also runs rm for every
> > > > single
> > > > > file as the output gets piped to it.
> > > > >
> > > > > Noah.
> > > > > On Monday 28 January 2008 17:09, andrew colin wrote:
> > > > > > xargs takes back to the problem of mv only supporting a certain
> > number
> > > > > > of arguments.
> > > > > >
> > > > > > On 1/28/08, Hari Kurup <[EMAIL PROTECTED]> wrote:
> > > > > > > Patrick Okui wrote:
> > > > > > > > The last time I tried something similar (4 years ago) it works
> > > > pretty
> > > > > > > > well with one limitation. Bash (and other shells) won't take
> > more
> > > > than
> > > > > > > > 256 (i think) arguments so you'd have to find . -type f -exec rm
> > > > '{}'
> > > > > > > > ';' or similar.
> > > > > > > >
> > > > > > > > That would work but I'm not sure how long it would actually
> > take.
> > > > > > >
> > > > > > > I think piping it through xargs would be faster? This one calls
> > 'rm'
> > > > for
> > > > > > > every single file.
> > > > > > >
> > > > > > > --
> > > > > > > Hari
> > > > > > > _______________________________________________
> > > > > > > LUG mailing list
> > > > > > > [email protected]
> > > > > > > http://kym.net/mailman/listinfo/lug
> > > > > > > %LUG is generously hosted by INFOCOM http://www.infocom.co.ug/
> > > > > > >
> > > > > > > The above comments and data are owned by whoever posted them
> > > > (including
> > > > > > > attachments if any). The List's Host is not responsible for them
> > in
> > > > any
> > > > > > > way. ---------------------------------------
> > > > > _______________________________________________
> > > > > LUG mailing list
> > > > > [email protected]
> > > > > http://kym.net/mailman/listinfo/lug
> > > > > %LUG is generously hosted by INFOCOM http://www.infocom.co.ug/
> > > > >
> > > > > The above comments and data are owned by whoever posted them
> > (including
> > > > attachments if any). The List's Host is not responsible for them in any
> > way.
> > > > > ---------------------------------------
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > "Happiness makes up in height what it lacks in length"
> > > > -- Robert Frost
> > > > _______________________________________________
> > > > LUG mailing list
> > > > [email protected]
> > > > http://kym.net/mailman/listinfo/lug
> > > > %LUG is generously hosted by INFOCOM http://www.infocom.co.ug/
> > > >
> > > > The above comments and data are owned by whoever posted them (including
> > > > attachments if any). The List's Host is not responsible for them in any
> > way.
> > > > ---------------------------------------
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > "Dru"
> > > To follow the path, look to the master, follow the master, walk with
> > > the master, see through the master, become the master. (zen)
> > > _______________________________________________
> > > LUG mailing list
> > > [email protected]
> > > http://kym.net/mailman/listinfo/lug
> > > %LUG is generously hosted by INFOCOM http://www.infocom.co.ug/
> > >
> > > The above comments and data are owned by whoever posted them (including
> > attachments if any). The List's Host is not responsible for them in any way.
> > > ---------------------------------------
> > >
> > >
> >
> >
> >
> > --
> > "Happiness makes up in height what it lacks in length"
> > -- Robert Frost
> > _______________________________________________
> > LUG mailing list
> > [email protected]
> > http://kym.net/mailman/listinfo/lug
> > %LUG is generously hosted by INFOCOM http://www.infocom.co.ug/
> >
> > The above comments and data are owned by whoever posted them (including
> > attachments if any). The List's Host is not responsible for them in any way.
> > ---------------------------------------
> >
> >
> >
>
>
> --
> "Dru"
> To follow the path, look to the master, follow the master, walk with
> the master, see through the master, become the master. (zen)
>


-- 
"Dru"
To follow the path, look to the master, follow the master, walk with
the master, see through the master, become the master. (zen)
_______________________________________________
LUG mailing list
[email protected]
http://kym.net/mailman/listinfo/lug
%LUG is generously hosted by INFOCOM http://www.infocom.co.ug/

The above comments and data are owned by whoever posted them (including 
attachments if any). The List's Host is not responsible for them in any way.
---------------------------------------

Reply via email to