On Wed, Dec 5, 2012 at 2:15 PM, Curt Lundgren <[email protected]> wrote:
> I wrote a Perl script a few years ago that deletes files from a directory
> that are older than n number of days.  We generally set n to 30 days, but
> you can set it to be anything you want.

Just curious as to why you wouldn't just use:
find /some/directory -mtime 30 -exec rm -f {} +

-- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

Reply via email to