Operating System User's Guide
Chapter 4, Editing files
Using ed
Using ed
ed is a line editor; it edits a single line at a time.
Occasions on which you might need to use ed include:
-
working on a incorrectly set terminal
-
no other text editor is available
-
executing a script of editing commands automatically
-
processing a script of editing commands output by the
file comparison command,
diff(C)