NetBSD/bin/ed/test/r1.ed

9 lines
91 B
Bash

#!/bin/sh -
../ed - <<\EOT
r \r1.d
1;r !echo hello world
1
r !echo hello world
w \r1.o
EOT