ex

Command-line text editor. See also: vim. More information: <https://www.vim.org>.

Arch Arch Linux
RUN pacman -S --noconfirm vi
Fedora
RUN dnf install -y vim-minimal-2
click the source code to copy install ex on any operating system with command-not-found.com