1g/foo/a\
2this line was inserted
3.=
4g/foo/a\
5also inserted this line\
6and this one too
7w
An extensible POSIX-compatible implementation of the ed(1) text editor
git clone https://git.8pit.net/edward.git
1g/foo/a\
2this line was inserted
3.=
4g/foo/a\
5also inserted this line\
6and this one too
7w