Yes that appears to work, looks like I didn't really have 125M files,
as you can see my C program fails to put the i variable in the printf
:)  It was enough files to bust rm -f mgetty.*,
I'd get an error from bash about hitting a memory limitation.
Didn't think of a way to do it without wildcards, so I wrote the C
program.

On Thu, Jul 03, 2003 at 06:54:02PM -0500, David Phillips wrote:
> Karl Bongers writes:
> > Or when all else fails, break out the real power tools.  This one
> > helped me delete 125 million mgetty.ttyS0.1.1.1,etc,etc log files
> > today.  Due to 
> > a RH7.X bug where logrotate config has this entry:
> > /var/log/mgetty.log.tty* { which causes it to multiply like rabbits.
> 
> You wasted your time writing a C program.  Learn to use the standard tools:
> 
> ls -1 /var/log | grep -E ^mgetty | xargs rm
> 
> This is the real power of UNIX :)
> 
> -- 
> David Phillips <david at acz.org>
> http://david.acz.org/
> 
> 
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> http://www.mn-linux.org tclug-list at mn-linux.org
> https://mailman.real-time.com/mailman/listinfo/tclug-list
> 


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list