If m is omitted, then it matches at least n times. If the comma is also omitted, then it matches exactly n times. All ed commands are single characters, though some require additonal parameters. In general, at most one command is allowed per line. Appends text to the buffer after the addressed line.
Text is entered in input mode.
The current address is set to last line entered. The addressed lines are deleted from the buffer, and text is appended in their place. Text is entered in input mode. The current address is set to last line entered. If there is a line after the deleted range, then the current address is set to this line.