I am trying to find a way to list every records inside a file (usually a log file) that are present after a record mathing/greater-then a timestamp supplied by another script.
The timestamp can be anywhere inside the record and it is usually in the standard `date` format (will not look for other formats).
ex:
Tue Jun 16 03:47:58 EDT 2009
I thought of using awk (on client's AIX 4.2) with index(str,regex) but that function does not see any timestamps inside the records (copied code below from memory).
I have no direct way of putting here file samples. All the files I want to use this method all have different formats, different infos but all have standard `date` format infos. The current file I am testing has records looking like :
As for the code tags, if you mean using clear coding methods, I was just doing a quick test to see if it is feasible. Cleaner code would come next if it works.