perl -ne 'print if/pattern/?$c=10:$c-->0' [download]
In reply to Re: grep -A10 oneliner? by Roy Johnson in thread grep -A10 oneliner? by piroufreek