Help for this page
perl -pe '$.>10&&last' yourfile.txt
# the Albannach method expanded (only read $n_lines from file): ... print @lines; __END__