I am trying to use
ed to edit the first line of a large file, but I have to wait for
ed to read all lines. Is there any way I could stop
ed from reading the whole file and start editing immediately, with the current line being the first line?
As noted by shellter
The least memory hungry way is to use