how to grep the logs for two particular timestamp

Hi,

could anyone help me out how to write a script, to grep the two timestamp from a particular file, so that it will list out all the logs between the particular timestamp

I have a pattern of log:

servicename operationname starttime endtime

eg.,

servicename1 operationname1 01:11:11 12:11:12

servicename2 operationname2 14:12:11 22:11:32

servicename3 operationname3 12:11:11 22:11:11

gets the lines based on starttimes start printing when you see 01:11:11 and stop when you see 12:11:11

sed -n '/ 01:11:11 [0-9]/,/ 12:11:11 [0-9]/p' log_file

or if you want the endtimes

sed -n '/[0-9] 12:11:12$/,/[0-9] 22:11:11$/p' log_file