One problem with lines like the
sed one above is that it can only match exact times. But what if you want everything from 2pm to 4pm say, but the first entry is 2:01pm? You need to be able to make relative matches.
Gnu
awk has a selection of time functions that can make this kind of thing easier, but it still requires a bit of work:
http://www.gnu.org/software/gawk/man...-Functions.htm
There are also solutions using perl and other languages. I'm sure you can find lots of info on the net if you look.
Finally, there are various tools others have written. The date utilities here include one called
dgrep that's designed just for this kind of thing:
http://www.fresse.org/dateutils/