After searching for a specified string, I would like to delete couple of rows from the file and continue searching. Basically, I would like to search through a text file that holds logs with date-time stamp in them and then clean up the file if the log entry is more than 2 days old.
Example log entries:
02.01.06 03:08:20.040 Output: 34 Bytes ==> 4472
???"?????????__ABCL__??__ABCL__�?
02.05.06 03:08:20.040 Output: 34 Bytes ==> 4472
???"?????????__CEDL__??__CEDL__�?
In the above example, I would like to delete the two lines for the entry from 02.01.06 and keep 02.05.06 if today is 02.05.06
Thanks.