perl -ne 'print if$c=/pattern/?11:$c-!!$c' [download]
In reply to Re^4: ...in 43 chars by gam3 in thread grep -A10 oneliner? by piroufreek