ed

mike at brl-vgr mike at brl-vgr
Sun Oct 2 15:31:46 AEST 1983


From:      Mike Muuss <mike at brl-vgr>

Yup;  I added that particular feature to V6 ED a long long time ago
(ca. 1977).  The syntax I chose was:

s delim old-pattern delim new-pattern delim [range] [command]

eg,

s/old/new/2,4p

s/old/new/5

etc.

(Heavily commented) ED source code, upon request, to licensed UNIX sites
(sigh).
			-Mike Muuss

PS:  it is exactly this sort of command that I still drop out of EMACS
and into ED for, every once in a while:

	g/frobnitz/s/this/that/3,7p



More information about the Comp.unix.wizards mailing list