The Ed Editor
- Ed has two modes, input mode and edit mode, and it is important to remember which mode it is in at any time. Input mode is used for creating text or for adding new lines to existing text. Edit mode is used for making changes to existing text and for reading and writing files in the filestore. All editing is done in a buffer so text only becomes permanent when it is written from the buffer into the filestore.
Input Commands
a Append input text after addressed line c Replace addressed lines with input text i Insert input text before the addressed line
Edit Commands
d Delete the addressed lines from the buffer e Delete the buffer contents then read file into the buffer E As for e but no warning is given if a modified buffer has not been written out f Print current remembered filename if file not specified, otherwise set it to file j Join together all the addressed lines mA Move addressed lines to follow line whose address is A p Print the addressed lines q Exit from the editor Q Exit from the editor with no warning r Read file into the buffer after addressed line u Undo the effect of the previous substitute command w Write the addressed lines into named file W Append the addressed lines to the named file x Decrypt or encrypt the text according to an input key = Print the line number of the addressed line x Print the next line
Next'��`�[email protected]'��`�