in reply to
Printing a line only if first line of file
perl -
ne
'print $_ unless
$.
>1'
... it even works on stdin.
-Paul
Comment on
Re: Printing a line only if first line of file
Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.
In Section
Seekers of Perl Wisdom