Line Retrieval Commands
The physical LINE RETRIEVAL commands fetch a specific line number (absolute or relative to current position) or indicate the pointed line number. Available commands are:
:G
Retrieve the next 23 data lines from the input file and display on the screen.
:G-
Retrieve the previous 23 data lines from the input file and display on the screen.
:G{n}
Get the {n}th line relative to the current position within the file and display that line and its surrounding lines on the screen.
:G-{n}
Get the {n}th line (backwards) relative to the current position within the file and display that line and its surrounding lines on the screen.
:GA{n}
Get the absolute line number {n} and display that line and its surrounding lines on the screen.
:G*
Indicate what absolute line number the current pointed line number is within the input file. After the line number is displayed on the command line, the operator must hit the enter key to continue with the edit procedure.
Note the following:
The ESCAPE sequence is applicable to all :G commands with the exception of the :G* command.
See Also: Example Commands, SUNEDIT Commands, Line Edit Mode, SUNEDIT
![]() |