It seems you can use a BEGIN {...} block with the -p flag to skip lines as well but it might be too succinct for its own good.
$ perl -pe 'BEGIN { <> for 1 .. 5 }' file > newfile
Cheers,
JohnGG
In reply to Re: Remove Lines from file
by johngg
in thread Remove Lines from file
by jreyesb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |