Date scripting
Ben Stringer
ben at burbong.com
Fri Mar 24 04:56:04 UTC 2006
On Thu, 2006-03-23 at 18:05 +0000, Chris Norman wrote:
> Hi people,
> I need to check files to see how old they are.
>
> How can I do this from within a backup script?
>
> I need to see if they are over a month old, and if so delete them. How do I
> get they're last modified stamp please?
find . -mtime +30 -ls
You can get find to delete them too - see the manpage.
Cheers, Ben
More information about the fedora-list
mailing list