[K12OSN] OT: Scripting Question

Calvin Dodge caldodge at gmail.com
Thu Nov 30 15:14:45 UTC 2006


On 11/30/06, Jim Kronebusch <jim at winonacotter.org> wrote:
> I hate to post another scripting question out here again, but you guys are so
> darn good it would be a shame not to :-)
>
> I have a folder full of files, I need a script that deletes any files in that
> folder that are more than 30 days old.  Sort of an automatic pruning.  I will

find /FOLDERNAME -type f -mtime +30 -exec rm -f {} ';'

Calvin




More information about the K12OSN mailing list