grep numbers range

I want to grep a range of numbers in a log file. My log file looks like this:

20050807070609Z;blah blah
That is a combination of yr,month,date,hours,minutes,seconds.
I want to search in the log file events that happened between a particular time.
like between 20050807070000 to 20050822070000 i.i all events happened between 7thAugust 7am until 22nd August 7am.

I tried with grep but in vain.

Help :frowning:

Thanks

Use sed.

Assuming you have the start date and end date,

sed -n -e '/20050807070000/,/20050822070000/p' log.file

Vino