Hi,
Each line of file contains a timestamp value(ex: 2012-01-16 14:43:23) which denotes the time at which a particular action was performed.
I want to extract the logs for all the actions performed in the last 2 hours using awk. That is, where timestamp should greater currentTime - 2 hours exactly.
(Ex: if currentTime=2012-01-16 15:30:01, extract all records where timestamp > 2012-01-16 13:30:01).
Thanks in advance.