NetBSD/bin/ed/test/i.ed

15 lines
99 B
Bash

#!/bin/sh -
../ed - <<\EOT
r \i.d
1i
hello world
.
2i
hello world!
.
$i
hello world!!
.
w \i.o
EOT