On Fri, Mar 07, 2003 at 06:46:31PM +0530, Shridhar Daithankar<[EMAIL PROTECTED]> wrote:
> No. xargs will construct a command using a line in input and pattern.  So it 
> will call rm 19201 times with one file at a time. Slow but better than not 
> working..

The number of lines from input to use in the command line to execute is configurable
in xargs.

> It is in essense, for i in `ls *` ; do rm -f "$i"; done. But I don't know if 
> bash/sh/ksh will choke om having so many items in the item list.

Well, if rm -f * choked, so will ls *.

> But you got  the idea right?

The idea is that xargs is somewhere between find . -type f -exec rm -f {} \; and
rm -f *, in terms of number of processes spawned.

Binand

-- 
Russian Roulette with Unix:
while :; do kill $RANDOM &> /dev/null && break || sleep 1; done


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to