2 ms·
> ed is a line editor in the sense that all of it's commands act on a \n delimited line at a time I don't think that’s fully correct. https://en.wikipedia.org
by Someone 3y ago
> ed is a line editor in the sense that all of it's commands act on a \n delimited line at a time
I don't think that’s fully correct.
https://en.wikipedia.org/wiki/Line_editor https://en.wikipedia.org/wiki/Line_editor (emphasis added):
“a line editor is a text editor in which each editing command applies to _one_or_more_ complete lines of text designated by the user”
Also, ed commands all can work on multiple lines by prefixing them with an address range. For example,
1,4l
will output the first four lines of the file to the output device.
I also think a defining feature is that line editors don’t automatically show a full screen of the document because they’re designed to be usable on a teletype, where printing a line took about 10 seconds. In fact, even just outputting the current line after each command was considered wasteful.