3.3

Table Of Contents
Starting ed
299
In the previous example, the user saved changes first by using the Write command (
w
), then
typed
q
to quit ed and return to a normal console prompt.
However, if you wanted to quit ed without saving your changes, you can do so. In this case,
you would have to type the Quit command twice: the first time to notify ed you want to quit,
and the second time to confirm that you want to quit without saving changes.
For instance:
q
?
q
NRCS-A$
In the previous example, ed responds to the first Quit command with a question mark (?) to
remind the user changes were made to the file and not saved. This is a precautionary warning
to help prevent a user from exiting ed and inadvertently losing changes that were not saved.
When the user replies by typing the Quit command a second time, ed exits, abandoning any
changes made.