Skip site navigation (1)Skip section navigation (2)
From:      Anandha Ponnampalam <a.ponnampalam@utoronto.ca>
To:        Tom Tilmant <tilmant@metacreations.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Find Command
Message-ID:  <3796876E.8A3E41E1@utoronto.ca>
References:  <000001bed321$118409c0$130a70d8@tilmant.com>

index | next in thread | previous in thread | raw e-mail

This is what i run on solaris 2.5+

find . -name '*.log' -exec rm {} \;

i wouldn't run it on / or with the wildcard '*"


Tom Tilmant wrote:

> I would like to setup a cron job that search for last access date >30 days
> and remove the file.  Could someone help me with the find command that would
> handle this.
>
> Thanks
>
> Tom
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3796876E.8A3E41E1>