It sounds simple but here is the situation.

I have DB2 creating log files.  Each file name is consecutive.

Eg:

S0000628.LOG
S0000629.LOG
S0000630.LOG
S0000631.LOG
S0000632.LOG
S0000633.LOG
S0000634.LOG
S0000635.LOG
S0000636.LOG
S0000637.LOG
S0000638.LOG
S0000639.LOG
S0000640.LOG

The DBA wants me to remove all logs from the logging directory except
the last 10 logs from the active log.  For example.  If the active log
is S0000640.LOG, I am to remove all logs prior to S0000629.LOG.

Can anyone give me an idea on how to do this.  I do not want to do this
by date.  Only by name.

Thanks,

Craig A. Sharp
Unix Systems Administrator
DNS Administrator
Security Administrator
Roush Industries
Office: 734-466-6286
Cell: 734-231-6769
Fax: 734-466-6939
[EMAIL PROTECTED]
====================================================
I have not lost my mind, it's backed up on tape somewhere!
====================================================

CONFIDENTIALITY NOTE 
This electronic transmission, including all attachments, is directed in
confidence solely to the person(s) to which it is addressed, or an
authorized recipient, and may not otherwise be distributed, copied or
disclosed. The contents of the transmission may also be subject to
intellectual property rights and all such rights are expressly claimed
and are not waived. If you have received this transmission in error,
please notify the sender immediately by return electronic transmission
and then immediately delete this transmission, including all
attachments, without copying, distributing or disclosing same.

_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to