End Commands


 

The END commands finishes an editing session and save the data file with all modifications, insertions, etc., terminates the edit session with no modifications, or positions to the end of the current input file. The original input file is overwritten with the :E commands. The :O commands perform no modification to the input file. Available commands are:

:E

Normal ending. Copy any remaining data in memory buffers to the scratch file, and then copy the scratch file over the original file.

:ED

Same function as the :E except the scratch files are deleted from the system.

:E/

End the edit session and delete any data lines in the file after the bottom line of the screen.

:E\

End the edit session and delete any data lines in the file before the top line of the screen.

:ED/

End the edit session as in the :E/ command and delete the scratch files.

:ED\

End the edit session as in the :E\ command and delete the scratch files.

:E*

Read to the end of the current input file and display the last 23 data lines on the screen.

:EO

Read to the end of the current input file, scrolling the data lines on the screen during the procedure. Upon reaching end of file, display the last 23 data lines on the screen.

:O

Abort this edit session without copying the scratch file back to the original data file. Any changes made during this session are lost.

:OD

Abort this edit session as above and delete the scratch files.

:OX {string}

Abort this edit session without copying the scratch file back to the original data file. Any changes made during this session are lost. The {string} is passed to the operating systems as a command to execute.

:ODX {string}

Abort this edit session and delete the scratch files. The {string} is passed to the operating systems as a command to execute.

Note the following:

  1. The ESCAPE sequence is applicable to all :E commands until the copy-back message is displayed on the screen.

 

 

See Also: Example Commands, SUNEDIT Commands, Line Edit Mode, SUNEDIT



System Utilities Display and Print Commands Find and Locate Commands