perl -ne 'print if ($. >= 10 and $. <=20 )' filename.ext