UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: deleteChapter 9
The ex Editor
Next: Reference: file
 

edit

e[!] [+n] [filename]

Begin editing on filename. If no filename is given, start over with a copy of the current file. Add a ! to edit the new file even if the current file has not been saved since the last change. With the +n argument, begin editing on line n. Or n may be a pattern, of the form /pattern.

Examples

:e file
:e#
:e!


Previous: Reference: deleteUNIX in a Nutshell: System V EditionNext: Reference: file
Reference: deleteBook IndexReference: file

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System