Re: Date scripting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris Norman writes:

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 $DIRECTORY -mtime +30 -exec rm -f '{}' \;


Attachment: pgpXUx5zSYimh.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux