in reply to Reading the last line of a file in a Pure Way.

Check this out.

From Perl Power Tools, tail ...

Here's a very complete version and its manpage by Thierry Bézecourt, and test generator with readme. This also implements xtail functionality through either a symlink or being called with tail -f

HTH
--
idnopheq
Apply yourself to new problems without preparation, develop confidence in your ability to to meet situations as they arrise.

  • Comment on Re: Reading the last line of a file in a Pure Way.