9

Grep in a log file within a time range (hour)

view full story
linux-howto

http://www.unix.com – Hi, im trying to write a grep script that returns me the last inputs added in the last hour in the log file. Literally i have nothing yet but: Code: grep 'Line im looking for' LOGFILE.log | tail -1 this only gives me the last input, but no necessarily from the last hour. Help Please. (HowTos)