grep file

MKlinke mklinke at axsi.com
Wed Apr 14 13:39:41 UTC 2004


On Wednesday 14 April 2004 08:10, Steve Buehler wrote:
   I
> was wondering if it would be easier to tell it just to cat the 2nd
> line from the end of the file.  That is where the line is always
> at.  Problem is, I do not know how to do this.  I hope that someone
> has an idea on this and would be kind enough to send me the
> correction.
>
> Thanks
> Steve

Take a look at the command "tail".  You could use that instead of 
"cat" as you do now.

Regards,  Mike Klinke





More information about the redhat-list mailing list