NetBSD/bin/ed/test/v.ed

12 lines
106 B
Bash

#!/bin/sh -
../ed - <<\EOT
r \v.d
v/[ ]/m0
v/[ ]/s/$/\
hello world
v/hello /s/lo/p!/\
a\
order
w \v.o
EOT