[lkml]   [1998]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Directory name problem...
Joe wrote the following:
> Riley,
> I admin a machine, and do the same thing to wipe out cores every
> day. However, all i use is the following line in my root crontab:
> 0 6 * * * find / -name core -exec rm {} ';'

I think you may find:

find / -type f -name core -exec rm {} ';'
to do exactly what you want.

The -type f tells it to only look at files and as such you wont
be relying on error reporting from rm.

Check the manpage for mroe details.

CaT ( URL:

There was farting in the air that night,
It lit so bright,

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:45    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean