Improving ed -- the batch text editor.

Signed-off-by: Frank Mertens <frank@cyblogic.de>