User Tools

Site Tools



ed is the standard text editor.

ed has two modes: command and input. By default it is in command mode. Use i or a to insert or append text and when finished input a . on a line all by itself to return to command mode.

A summary of ed commands

aappend text to the buffer
iinsert text at the current line in the buffer
pprint the current line - try 1p to print the first line
qquit ed - to quit without saving, type q!
ssearch/replace - try s/old/new
wwrite out the buffer to disk - w filename
.return to command mode from append or input mode

If you have made an error, ed will only respond with ?

ed_survival.txt · Last modified: 2020/03/11 17:31 by smj