[nycbug-talk] Deleting Lots of Files.

Pete Wright pete at nomadlogic.org
Wed Jun 21 11:31:21 EDT 2006


On Wed, Jun 21, 2006 at 10:44:01AM -0400, Hans Kaspersetz wrote:
> I was wondering what the best way to delete lots of files is.  Here is 
> my problem, I have a mail box directory with 55K files in it.  The file 
> names are in the form:  1144126802.V411I59451aM517953.foo.com:2,  They 
> are semi squential.
> 
> I would like to delete all the files in the 114* series.  However, when 
> I pass rm -f ./114*, I get to many arguments as an error.  What I really 
> want to delete is all files from before June.
> 

use mutt ;)

once logged in:
~T
~d 01/01/04-10/03/05
<or to delete everything upto a date>
~d -10/03/05
D

this should do the trick, you can also use ~m 1-10 to delete a range of
messages.

-pete

-- 
~~oO00Oo~~
Peter Wright
pete at nomadlogic.org
www.nomadlogic.org/~pete
310.869.9459




More information about the talk mailing list