in reply to
grep -A10 oneliner?
I think this is fully golfed, yet reasonably readable:
perl -ne 'print if/pattern/?$c=10:$c-->0'
[download]
Caution:
Contents may have been coded under pressure.
Comment on
Re: grep -A10 oneliner?
Download
Code
In Section
Seekers of Perl Wisdom