lblauen
Technical User
- Aug 13, 2002
- 69
I need a simple script to rotate some log files I have. They are as follows. I want to keep 30 days worth and lose the oldest. Or a setable # of days worth. They are made everyday.
reports.txt.012404
reports.txt.012504
reports.txt.012604
reports.txt.012704
reports.txt.012804
reports.txt.012904
reports.txt.013004
reports.txt.013104
reports.txt.020104
reports.txt.012404
reports.txt.012504
reports.txt.012604
reports.txt.012704
reports.txt.012804
reports.txt.012904
reports.txt.013004
reports.txt.013104
reports.txt.020104