If you need to get some text which is in file between two lines you could use awk for this. You may need it while analyzing access logs to fix some issue, for instance. Here’s how you could do it:
awk '/2012:00:20:49/, /2012:00:35/' access_log > output
It’s a simple and convenient way.