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