Yeah, I'd still do it in Perl.  Why?  Because I do just about everything in
Perl.  I've worked with that type of file; it's more programming to make my
approach work (probably not worth it.)  Larry Wall might observe that
there's always another way to do it.

On Wed, Dec 5, 2012 at 2:21 PM, Howard White <[email protected]> wrote:

> On 12/05/2012 02:15 PM, Curt Lundgren 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.
>>
>
> Curt,
>
> I am able to delete files like individual log files or print files that
> are discrete files.  But /var/spool/mail/root has all of the messages to
> root in one file.  We run a cron like:
>
> find /somedir/some_pattern* -mtime +31 -type f | xargs rm -f
>
>
> Howard
>
> --
> 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 nlug-talk+unsubscribe@**
> googlegroups.com <nlug-talk%[email protected]>
> For more options, visit this group at http://groups.google.com/**
> group/nlug-talk?hl=en <http://groups.google.com/group/nlug-talk?hl=en>
>

-- 
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