Help for this page
perl -ne 'print if $.=/pattern/?1:2..10'
perl -ne 'print if$c=/pattern/?11:$c&&$c-1'
perl -ne 'print if(/pattern/?$c=10:$c--)>0'