The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How to print 3rd to last line of file?
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
How to print 3rd to last line of file?
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
09-10-2007
porter
Registered User
Join Date: Jan 2007
Posts: 2,965
tail -n 3 logfile | head -n 1
porter
View Public Profile
Find all posts by porter