sed (Section 34.1) is an editor that can
only be run with scripts or by entering a few
short commands as command-line arguments; while it has many similar
commands, it has some important
differences (Section 34.2) from
ed and ex.
awk (Section 20.10) is a great way to pull apart a line of text
into a sequence of elements. Used frequently with
sed.
patch (Section 20.9) is a specialized editor designed to apply
editing scripts created with diff (Section 11.1). You can do this with ed
or ex as well, but patch is
especially clever at it.
Of course, editing is a continuum, and beyond sed
and awk (Section 20.10) lie more complete programming languages like
perl (Section 41.1)
and python (Section 42.1) that are very adept at manipulating text.