On Sun, Apr 23, 2000 at 12:57:24AM +0300, Jukka Lindgren wrote:
> How can I delete any and all 'core' files on my system without user
> intervention.
> 
> I've seen a script on certain Sparcs at work, it was done with 'awk' or
> 'grep - or both.. I just can't remember.
> 
> Do I start with 'find / -name core' or perhaps 'ls -R core' from the root
> and then pipe this to 'grep' or 'awk' and format it as a command to delete
> everything found.
> 
> Hope you catch my drift... I don't want those huge core files piling up on
> my system as I play around with it crashing one program after another. So a
> cron job once a day (night, actually) would do the job!

a good command line to start with would be:

find / -name core -type f | xargs rm

-- 
Steve Borho                       Voice:  314-615-6349
Network Engineer
Celox Networking Inc

Fortune of the day:
Take an astronaut to launch.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to