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: Hin-Tak@pc7221.btlabs.bt.co.uk (hin-tak.leung@bt.com) Subject: Re: Deleting many files with rm Date: 2000/08/04 Message-ID: <8me4hu$8i3$1@pheidippides.axion.bt.co.uk>#1/1 X-Deja-AN: 654367835 References: <8mbaa1$b09$1@nnrp1.deja.com> X-Complaints-To: postmaster@axion.bt.co.uk X-Trace: pheidippides.axion.bt.co.uk 965383550 8771 132.146.195.116 (4 Aug 2000 10:05:50 GMT) Organization: BT Adastral Park, Martlesham Heath, Ipswich, UK NNTP-Posting-Date: 4 Aug 2000 10:05:50 GMT Newsgroups: comp.unix.tru64 well, I am sure you can do: find . -type f -exec rm {} \; instead. This just delete the files one at a time in the current directory. Probably isn't as efficient as "rm *", but it get around the problem of arg list too long. In article <8mbaa1$b09$1@nnrp1.deja.com>, andrew.rycroft@intrinsitech.com writes: >Hi, > >I am trying to delete files (with rm * ) from a directory which >contains many files. I get the following error messages :- > >ksh: /sbin/rm: arglist too long > >Is there any other way of doing this other than writing a script to >delete the files a*, b*, c* etc. ? > >What is the maximum no. of files I can delete ? > >I also hit a similar limitation with tar ! > >Appreciate any input. > >Thanks > > > >Sent via Deja.com http://www.deja.com/ >Before you buy.