37 lines
181 B
Bash
37 lines
181 B
Bash
#!/bin/sh -
|
|
../ed - <<\EOT
|
|
r \u.d
|
|
1;r u.t
|
|
u
|
|
a
|
|
hello
|
|
world
|
|
.
|
|
g/./s//x/\
|
|
a\
|
|
hello\
|
|
world
|
|
u
|
|
u
|
|
u
|
|
a
|
|
hello world!
|
|
.
|
|
u
|
|
1,$d
|
|
u
|
|
2,3d
|
|
u
|
|
c
|
|
hello world!!
|
|
.
|
|
u
|
|
u
|
|
-1;.,+1j
|
|
u
|
|
u
|
|
u
|
|
.,+1t$
|
|
w \u.o
|
|
EOT
|