NetBSD/bin/ed/test/g1.ed

12 lines
104 B
Bash

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