NetBSD/bin/ed/test/w.ed

8 lines
65 B
Bash

#!/bin/sh -
../ed - <<\EOT
r \w.d
w !cat >\!.z
r \!.z
w \w.o
EOT