in reply to Must have CLI of Perl's sed's n command
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Must have CLI of Perl's sed's n command
by LanX (Saint) on Jun 30, 2022 at 02:34 UTC | |
|
Re^2: Must have CLI of Perl's sed's n command
by abdan (Acolyte) on Jun 30, 2022 at 02:10 UTC | |
by choroba (Cardinal) on Jun 30, 2022 at 05:50 UTC |