Re: Printing first and last line
by
pvaldes
on
Aug 14, 2012 at 08:27 UTC
http://www.perlmonks.org?node_id=987294
in reply to
Printing first and last line
perl -ne 'print if eof || $. == 1' my_file
Comment on
Re: Printing first and last line
Download
Code
In Section
Seekers of Perl Wisdom