tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Summary: deleting large numbers of files
@ 1997-08-06 15:06 James Anderson
  0 siblings, 0 replies; only message in thread
From: James Anderson @ 1997-08-06 15:06 UTC (permalink / raw)
  To: tru64-unix-managers



the problem:

On Tue, 5 Aug 1997, James Anderson wrote:

> 
> Seems someone on the net has taken it upon themselves to issue cancel
> messages for anything they consider a spam in the entire alt.* hierarchy.
> At this point the highest message number in the control.cancel hierarchy
> is over 7000000.  the directory itself is over 5 meg in size.  is there an
> easy way to say, blow that entire directory away without using rm?  (keep
> getting either arglist too long or the shell faults if I do a rm * or rm
> -rf).  I'd rather not newfs the partition, but I'm getting to that point.
> This is an Alphaserver 400 running 3.2c and inn.
> 
> Jim
> 

The solutions?  Too numerous to mention...  most focused on using find and
xargs which is what I ended up doing.  Some interesting ideas on using
unlink and such too.  Thanks to all who responded.

Jim

ps - executive summary - find . -print |xargs rm -f

----
_______________________________________________________________________________
James C. Anderson                      PHONE: (216) 775-6929
Computer Systems Manager                 FAX: (216) 775-8573
Houck Computing Center                 Email: anderson@ocaxp1.cc.oberlin.edu
Oberlin College                   Home Page: http://www.oberlin.edu/~anderson/
Oberlin, OH 44074
_______________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-08-06 15:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-08-06 15:06 Summary: deleting large numbers of files James Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox