I have a log file like this; I can get NOW=HOUR=date +'%H'I can get login time in hour with something like cat file | awk '{print $2}' | cut -d: -f1 Is there a way I can compare the login times in hours in the file against current time in hour  and say if the login hour is > 5 hours and display the record only matching that criteria.Say its 3pm which is 15 hours, we would not like to display below as log in times are less than 5 hours11:26:16     Login.Success     yden8703        gkU3Qx4iiWPVMrV12:26:24     Login.Success      pxia9495        2OVvMrAmgRAOZyJ
Log file processing
linux;bash