I need to put together a script that will read through a logfile that begins each line with a date entry and only keep the last 30 days of entries and then archive the rest at the same time not losing any writes to the log as it is up at all times.
my date format is : Sat Aug 31 23:13:46 CDT 2002
can someone give me some pointers on how to accomplish the above?
Thanks
Bob