a creative use of find

Bill Tangren bjt at aa.usno.navy.mil
Fri Oct 7 13:41:52 UTC 2005


Geoff Rainey (DSL AK) wrote:
> When I want to delete files within a dir older than a certain creation time, I use:
>  
> find /filesystem/location -ctime +30 -exec rm -f {} \;
>  
> this will delete files older than 30 day create time.
>  
> regards,
> Geoff.
> 

Ah, -ctime. I missed that one.

Thanks!

Bill




More information about the redhat-list mailing list