edward

An extensible POSIX-compatible implementation of the ed(1) text editor

git clone https://git.8pit.net/edward.git

 1!# From POSIX:
 2!#  A line can be split by substituting a <newline> into it. […]
 3!#  Such substitution cannot be done as part of a g or v command list.
 4a
 5foo
 6bar
 7baz
 8.
 9g/foo/s/foo/test\
10foo\
11bar
121,$n
13Q