User Tools

Site Tools


ed_survival

This is an old revision of the document!


ed

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

commanddescription
aappend text to the buffer
iinsert text at the current line in the buffer
pprint the current line in the buffer - 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.1583947899.txt.gz · Last modified: 2020/03/11 17:31 by smj