in reply to Print last line in a file
I've always done it as one-liner:
perl -ne '$last=$_; END{print $last}'
Similar in spirit to tachyon's reply.
|
---|
In Section
Seekers of Perl Wisdom
in reply to Print last line in a file
perl -ne '$last=$_; END{print $last}'
Similar in spirit to tachyon's reply.
|
---|