How to fetch data between two timestamps in a file using KSH

Hi,

I got a requirement to fetch data between two time stamps in a big log file and grep for a word in that particular time interval of data.

Here is my log looks like:

2012/04/08-14:35:56                  Abcdefg
2012/04/08-14:35:56                  Hijklmnophhoishfw
2012/04/08-14:35:56                  fwhgiufhwiuhfoiwhfw
2012/04/08-14:55:56                  wewuwcdiwhcih
2012/04/08-15:35:56                  ihydoiwyhfroiwhflw

Now my requirement is to pull records from 2012/04/08-14:35:56 to 2012/04/08-14:55:56

if you see the above file there might be multiple lines with the same timestamp, I need the data to be copied over to another file from first occurance of:

2012/04/08-14:35:56 to 2012/04/08-14:55:56.

Could anyone please help me.

Thanks in advance
Siri

This will separate you all numbers so you can do a numeric sort by prioritizing on which you want to sort first, second, etc.

using awk to check by field number, you can then get the record numbers you need.

sed 's/\([0-9][0-9.]*\)/ & /g'