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: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: Deleting many files with rm Date: 2000/08/04 Message-ID: <8mf737$16t$1@mailint03.im.hou.compaq.com>#1/1 X-Deja-AN: 654543003 Distribution: world References: <8mbaa1$b09$1@nnrp1.deja.com> <8me4hu$8i3$1@pheidippides.axion.bt.co.uk> X-Complaints-To: usenet@mailint03.im.hou.compaq.com X-Trace: mailint03.im.hou.compaq.com 965418919 1245 16.82.16.67 (4 Aug 2000 19:55:19 GMT) Organization: Digital Equipment Corporation Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) NNTP-Posting-Date: 4 Aug 2000 19:55:19 GMT Newsgroups: comp.unix.tru64 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 because, the first one will have to start a new rm for each file. The 2nd one will use one rm for a whole bunch of files. While UNIX forks are relatively cheap, they do take time, I/O and page faults. In the end, it will still be I/O bound though. > -- Alan Rollow alan@nabeth.cxo.dec.com