3 ms·
If you want something even more bare-bones than ex or ed, you could use cat as a write-only editor. In combination with head and tail, replacing parts of a file
by yorwba 9y ago
If you want something even more bare-bones than ex or ed, you could use cat as a write-only editor. In combination with head and tail, replacing parts of a file would be possible as well.
- yjftsjthsd-h 9y agoOr sed, which for many editing purposes is probably easier to use.
- yorwba 9y agoSure, but sed is basically just ed in non-interactive mode, so not very different from ex. And ex on my system is basically just vim without instant redraw after each change. And then you're back in terminal-GUI land. It's interesting how the ancestors of modern editors are still around as living fossils ...
- nerdponx 9y agoI suppose you could also use TECO: http://almy.us/teco.html http://almy.us/teco.html