Start ed with -p string to use string as a visible command prompt. ed -p ":" ed.html

Basic command syntax: [addr [,addr]]command[params]
where addr specifies a line or range of lines to operate on. Line numbers start at 1; an address of 0 is legal where sensible.

Special address characters:

Commands, with default address in the parentheses:

When in insert mode, a single . on a line on its own exits insert mode and puts the user in command mode.


Originally posted 2016-01-07 | Last changed 2017-06-10

Written in ed itself

loop back to index