Last line of file/Perl

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: technomage
Date:  
Subject: Last line of file/Perl
you can always tail it.

I think the command syntax is: tail --lines=1 <file>

Technomage.

p. I use this a lot when making additions to thje hosts file when I need to
see what the last line is.


On Thursday 14 November 2002 01:39 pm, you wrote:
> I need to open a file and just read in the last line, can anyone
> throw me a bone?
>
> v/r
> -Mike
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


--
I will not be pushed, filed, stamped, indexed, briefed, debriefed, or
numbered!
My life is my own - No. 6