ed
The original Unix text editor. See also: awk, sed. More information: <https://www.gnu.org/software/ed/manual/ed_manual.html>.
Install
- All systems
-
curl cmd.cat/ed.sh
- Debian
-
apt-get install ed - Ubuntu
-
apt-get install ed -
Alpine
-
apk add ed - Arch Linux
-
pacman -S ed - Kali Linux
-
apt-get install ed - CentOS
-
yum install ed - Fedora
-
dnf install ed - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install ed - OS X
-
brew install ed - Raspbian
-
apt-get install ed - Docker
-
docker run cmd.cat/ed edpowered by Commando
The original Unix text editor. See also: awk, sed. More information: <https://www.gnu.org/software/ed/manual/ed_manual.html>.
-
Start an interactive editor session with an empty document:
ed -
Start an interactive editor session with an empty document and a specific prompt:
ed --prompt='> ' -
Start an interactive editor session with user-friendly errors:
ed --verbose -
Start an interactive editor session with an empty document and without diagnostics, byte counts and '!' prompt:
ed --quiet -
Start an interactive editor session without exit status change when command fails:
ed --loose-exit-status -
Edit a specific file (this shows the byte count of the loaded file):
ed path/to/file -
Replace a string with a specific replacement for all lines:
,s/regular_expression/replacement/g
© tl;dr; authors and contributors