1 example for ed
# ed - a line editor
# launch ed
ed
# launch ed with a prompt (":")
ed -p:
# ed takes commands within the actual editor
# these are some of the more essential ones
# the prompt from earlier is included to distinguish betwen commands and text
# quit ed
:q
# write a file
:w
# see error description
:h
# globally make errors verbose (lasts until quit)
:H
# edit text
:a
# stop editing text
.
# example of writing one line and going back to command mode
:a
Hello, world!
.
: