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: Timo Felbinger Subject: Re: Deleting many files with rm Date: 2000/08/06 Message-ID: #1/1 X-Deja-AN: 655087986 X-NSA-INFO: Plutonium-content: sub-critical; Anthrax-content: non-lethal; Echelon-relevance: classified References: <8mbaa1$b09$1@nnrp1.deja.com> <8me4hu$8i3$1@pheidippides.axion.bt.co.uk> <8mf737$16t$1@mailint03.im.hou.compaq.com> X-NO-CC-TO: Osama bin Laden; White House; Ghaddafi Content-Type: TEXT/PLAIN; charset=US-ASCII X-Complaints-To: usenet@zeppelin.rz.uni-potsdam.de X-Trace: zeppelin.rz.uni-potsdam.de 965575667 13713 141.89.72.92 (6 Aug 2000 15:27:47 GMT) Organization: University of Potsdam Mime-Version: 1.0 Reply-To: Timo.Felbinger@quantum.physik.uni-potsdam.de NNTP-Posting-Date: 6 Aug 2000 15:27:47 GMT Newsgroups: comp.unix.tru64 On 4 Aug 2000, Alan Rollow - Dr. File System's Home for Wayward Inodes. wrote: > > In article <8me4hu$8i3$1@pheidippides.axion.bt.co.uk>, Hin-Tak@pc7221.btlabs.bt.co.uk (hin-tak.leung@bt.com) writes: > > >well, I am sure you can do: > > > > find . -type f -exec rm {} \; > > > > 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. In additon, your suggestion (as most applications of xargs) is dangerous as it will fail for filenames containing spaces. Timo Felbinger -- Timo Felbinger Quantum Physics Group http://www.quantum.physik.uni-potsdam.de Institut fuer Physik Tel: +49 331 977 1793 Fax: -1767 Universitaet Potsdam, Germany