@blogdiva ed, the standard text editor, is all you need. https://www.gnu.org/fun/jokes/ed-msg.en.html
Ed, man! !man ed- GNU Project - Free Software Foundation (FSF)