in reply to range of lines

On Unix, you may be able to accomplish with this.
grep -A5 pattern file