in reply to Print n lines after a matched line

For a generic solution please see: Re^2: Grab 3 lines before and 2 after each regex hit (sliding window)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery