I know I asked a similar question but I want to know if there is a regular expression existing that with a korn shell cmd, finds any timestamp data records in a file where it is greater then a timestamp in a shell variable ?
something like :
grep all records where it has a timestamp > $DesiredTime from logfile-X
It would simplify my coding alot for what I want to do on the client's AIX 4.2
I know I could always do a regular expression to match each date parts. But I need to know if there a special one that will allow me something like :
grep all records in file where any timestamp in it is > $a_given_timestamp
For that I afraid you have to convert your timestamp to min or sec's before comapring it with the given timestamp(that should be also in min or in sec's)