Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Printing first and last lineby pvaldes (Chaplain) |
on Aug 14, 2012 at 08:27 UTC ( [id://987294]=note: print w/replies, xml ) | Need Help?? |
perl -ne 'print if eof || $. == 1' my_file
In Section
Seekers of Perl Wisdom
|
|