Install ed by entering the following commands in the terminal:
sudo apt update sudo apt install ed
Description:
classic UNIX line editor
ed is a line-oriented text editor. It is used to create, display, modify and otherwise manipulate text files. . red is a restricted ed: it can only edit files in the current directory and cannot execute shell commands.
Homepage: http://www.gnu.org/software/ed/
Version: 1.10-2.1
Section: editors