in reply to Remove Lines from file

Another one-liner solution.

$ perl -ne 'BEGIN { <> for 1 .. 5 } print' file > newfile

Cheers,

JohnGG