The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-10-2007
NivekRaz NivekRaz is offline
Registered User
 

Join Date: Sep 2007
Posts: 1
How to print 3rd to last line of file?

Hi,

I have a ksh script I would like to modify.

What I need it to do is look at an ever changing log file and print the 3rd to last line. Is there a command that will display this? I can not use line numbers because the file is always growing.

Thanks for any help
Reply With Quote
Remove advertisements
!!
Forum Sponsor