WELCOME BACK TO THE WORLD OF SeaWolf Mailing List !

Thanks Piotr, Frank and Cameron for the reply. It could help me.

PS: sorry for late reply, I began my holiday since I posted this question.

LinuxKH
-------
"Please, correct me if I'm wrong. THANKS!"

On Thu, 2 Aug 2001, Cameron Simpson wrote:

> On Thu, Aug 02, 2001 at 01:17:34PM +0200, Piotr Grabowski <[EMAIL PROTECTED]> wrote:
> | > How can I delete files with specificed date ?
> | > E.g:      I want to delete only 'messages.log.*.gz' of the year 2000.
> |
> | On Thu, 2 Aug 2001, LinuxKH wrote:
> | Well maybe:
> | $ find / -name messages.log.*.gz -ctime date_in_datetime_format -exec rm
> | {} ;
> 
> Neater is
> 
>       find messages.log.*.gz -mtime +n -exec rm {} ';'
> 
> The starting point of find doesn't _have_ to be a directory you know...
> 
> Also, it's probably more reliable to work off mtime instead of ctime;
> the latter is last _change_ to inode, not creation time as many imagine.
> Which means it gets reset also by acts like chmodding the file.
> 
> The +n above should have n equal to the number of days you want to
> consider old enough. Say 210 for the 7 months back to 2000.
> -- 
> Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/
> 
> DON'T DRINK SOAP! DILUTE DILUTE! OK!
>       - on the label of Dr. Bronner's Castile Soap
> 



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to