in reply to grep -A10 oneliner?
How about the following: (Not golfed)
perl -ne "$i = 11 if /pattern/; if ($i) { $i--; print; }" [download]