The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 12-07-2004
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Quote:
Originally posted by bhargav
CTRL+G gives M of N .... where N is total number of lines in that file.

Goto last line and reach EOF by

ESC
:
N
and then $ to reach EOF.
Yes, but having to look at the output from CTRL+G, then plugging that into :N (i.e. :230 or whatever) is all extra uneccesary keystrokes. A simple SHIFT-G gets you down to the last line with no hassle. Or, as you suggest :$ does the same thing.

Cheers
ZB