From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Nipper Subject: Re: Deleting many files from a directory Date: Thu, 23 Dec 2004 04:48:25 -0600 Message-ID: <20041223104825.GB72494@king.bitgnome.net> References: <41CA927C.2000508@netual.pt> <2E0AF0E364FECE03D8B9E41E@[192.168.1.247]> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <2E0AF0E364FECE03D8B9E41E@[192.168.1.247]> Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: harry_b@mm.st Cc: M?rio Gamito , linux-admin@vger.kernel.org On 23 Dec 2004, harry_b@mm.st wrote: > To remove all files in all subdirectories do: > > find /path/ -type f | xargs -n 50 rm > > Thats much faster than 'find ...-exec...' That can get a little strange though if files have spaces or other strange characters in their names. -- Mark Nipper e-contacts: 4475 Carter Creek Parkway nipsy@bitgnome.net Apartment 724 http://nipsy.bitgnome.net/ Bryan, Texas, 77802-4481 AIM/Yahoo: texasnipsy ICQ: 66971617 (979)575-3193 MSN: nipsy@tamu.edu -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GG/IT d- s++:+ a- C++$ UBL++++$ P--->+++ L+++$ !E--- W++(--) N+ o K++ w(---) O++ M V(--) PS+++(+) PE(--) Y+ PGP t+ 5 X R tv b+++@ DI+(++) D+ G e h r++ y+(**) ------END GEEK CODE BLOCK------ ---begin random quote of the moment--- "All mail clients suck. This one just sucks less." -- author of the Mutt e-mail client ----end random quote of the moment----