From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,740ba1e74978216e X-Google-Attributes: gidfa528,public From: jfc@mit.edu (John F Carr) Subject: Re: Deleting many files with rm Date: 2000/08/06 Message-ID: <398deee3$0$9431@senator-bedfellow.mit.edu>#1/1 X-Deja-AN: 655217490 References: <8mbaa1$b09$1@nnrp1.deja.com> <8me4hu$8i3$1@pheidippides.axion.bt.co.uk> <8mf737$16t$1@mailint03.im.hou.compaq.com> X-Trace: dreaderd 965603043 9431 18.184.0.36 Organization: Massachvsetts Institvte of Technology Newsgroups: comp.unix.tru64 In article , Timo Felbinger wrote: >> >> This is likely to take much longer than: >> >> find . -type f -print | xargs rm > >And in what sense is this better than a simple rm * ? Stuffing >all args into a single call to rm will hit exactly the same O/S >limits the original poster wanted to avoid. xargs knows the maximum argument list size, and will run its command several times if it is necessary to split the input list. -- John Carr (jfc@mit.edu)