Please use [code][/code]
tags around your code and data, to preserve formatting and to improve readability. Please do not use quote tags, colors, or other fancy formatting.
I believe the A,B,C options in grep are only able to print fixed numbers of lines, and can't be told to go "to the end".
command is probably the best way to go. I'll also add that a gnu extension lets you use "0" instead of "1", to ensure that the address range works when the pattern appears on the first line.
Here are a few useful sed references.
The sed faq is especially helpful for cases like this.