Your formatting is kind of terrible, but you can check $. and skip if the first line (next if $. == 1). Another option might be to use the trick of using -M and a version to get something to run before the magical while wrapping the -n does. Use something like -M5.010’;scalar <>;’ to have the first line read (and discarded).
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: Must have CLI of Perl's sed's n command
by Fletch
in thread Must have CLI of Perl's sed's n command
by abdan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |