if I have a file containing:
1 ABC
2 123XYZ
3 6:45 a.m.
4 123DHD
5 ABC
6 10:52 p.m.
7 CDE
and follow these
$>grep -P '6:45\sAM|10:52\sPM' temp 6:45 AM 10:52 PM $>.
should do the trick (-P - perl regx)
EDIT:
Perhaps I misunderstood the other answers are very good if I just wanted to find the time, but you seem to be after a certain time. others will match ANY time in HH: MM format.
in general, I believe that the items you after this will | which is used in this case, so that alternative phrases and {n, m} correspond to the nth time {1,2}, correspond 1-2 times, etc.
source share