On Mar 30, 2021, at 4:38 PM, John Cowan <cowan(a)ccil.org> wrote:
I missed the fact that Posix and Linux ed support s/foo/bar/3 (as opposed to s3/foo/bar);
ex does not, unfortunately.
By analogy with s/RE/replacement/g, it would have made more sense
to allow sN/foo/bar/M to mean replace M instances of foo with bar,
starting the Nth instance of foo. N & M default to 1. M can also be g.
We need a Great Unification of Line Editors.
Add in sam's command language as well!
Alternately I'd want k style array language built in, enhanced with
regexps.