Ah, ed. Back in the mid 80s, I had to teach a course on Unix & its tools - if I remember correctly it was called "Unix - a modern OS". One of those tools was of course ed. We couldn't use vi because the termcap/terminfo settings were screwed up for the physical serial terminals we had - I eventually fixed this & felt very pleased with myself, as those terminal config files are a b*tch.
Still, teaching bash, C and the usual suspects along with ed was very strenuous for the students, and for me - we only ran the course once.
I don't use ed interactively but find it's really useful in shell scripts that need to edit files - heredocs or piping printf output (like one example in the article; never felt a need for something like his xed). Even used it in a C program via popen() to edit settings in a config file.
ed is underrated.
(I'm responsible for suggesting GNU ed accept posix EREs; think I got the idea from NetBSD's version)
When even “IDEs are complete overkill—just use vi” sounds like weakness and the entitlement of modern youth, seek out the ed fan pages!
ed isn’t quite flipping binary toggle switches to load your program, but close enough to deliver the joy of brutal minimalism along with a nostalgic waft of yesteryear.
> ed isn’t quite flipping binary toggle switches to load your program, but close enough to deliver the joy of brutal minimalism along with a nostalgic waft of yesteryear.
No, that would be Teco, or, more “all we had were zeros”, ED on CP/M.
ED is, well, miserable. It’s a character editor, vs a line editor, and you had the joys of paging in chunks of your file into working memory.
I, personally, find command line character editors especially difficult. I find it very hard to maintain my context and, of course, who doesn’t just love counting characters for commands.
I like ed but I prefer 'sam -d' (the terminal mode of Sam). It has a nice looping construct 'x' and you can open multiple files and do batch edits (with 'X').
There is a Go port of Sam, which is easy to install:
Funny thing about ed: While it is still one of my most common commands, it is also my dad's name. So, I've spent my entire career regularly typing my father's name at work.
ed is the first program I put in exaequOS (https://exaequos.com), an OS fully running in the Web browser. For testing ed, you can open a terminal and type 'ed'
Ah, ed. Back in the mid 80s, I had to teach a course on Unix & its tools - if I remember correctly it was called "Unix - a modern OS". One of those tools was of course ed. We couldn't use vi because the termcap/terminfo settings were screwed up for the physical serial terminals we had - I eventually fixed this & felt very pleased with myself, as those terminal config files are a b*tch.
Still, teaching bash, C and the usual suspects along with ed was very strenuous for the students, and for me - we only ran the course once.
I don't use ed interactively but find it's really useful in shell scripts that need to edit files - heredocs or piping printf output (like one example in the article; never felt a need for something like his xed). Even used it in a C program via popen() to edit settings in a config file.
ed is underrated.
(I'm responsible for suggesting GNU ed accept posix EREs; think I got the idea from NetBSD's version)
When even “IDEs are complete overkill—just use vi” sounds like weakness and the entitlement of modern youth, seek out the ed fan pages!
ed isn’t quite flipping binary toggle switches to load your program, but close enough to deliver the joy of brutal minimalism along with a nostalgic waft of yesteryear.
ED is, well, miserable. It’s a character editor, vs a line editor, and you had the joys of paging in chunks of your file into working memory.
I, personally, find command line character editors especially difficult. I find it very hard to maintain my context and, of course, who doesn’t just love counting characters for commands.
I like ed but I prefer 'sam -d' (the terminal mode of Sam). It has a nice looping construct 'x' and you can open multiple files and do batch edits (with 'X').
There is a Go port of Sam, which is easy to install:
go install 9fans.net/go/cmd/sam@latest
http://sam.cat-v.org/
+1, structural regular expressions are a joy to use.
https://doc.cat-v.org/bell_labs/sam_lang_tutorial/sam_tut.pd...
Also interesting, with other derivates of ed -- LineEditorFamily in the TextEditors Wiki: https://texteditors.org/cgi-bin/wiki.pl?LineEditorFamily
Funny thing about ed: While it is still one of my most common commands, it is also my dad's name. So, I've spent my entire career regularly typing my father's name at work.
Forget it, you won't be able to be funnier than the 1991 TRUE PATH TO NIRVANA. This is unbeatable.
After reading this article, I need to learn :wq for ed.
Edit - I suppose that shouldn't have been surprising:
w
q
Vi comes from ex, which itself came from ed.
Wild implementing Ed in Brainfuck: https://github.com/bf-enterprise-solutions/ed.bf/blob/master...
https://web.archive.org/web/20250924125053/https://aartaka.m...
I used to use EDLIN on my MS/DOS days...
.
BTW, its FreeDOS version is still being updated fairly frequently. :) Current version 2.24 is from May 2024.
ed is the first program I put in exaequOS (https://exaequos.com), an OS fully running in the Web browser. For testing ed, you can open a terminal and type 'ed'
Aaron have a crossplatform ed in Apl.This is great when you familiar with apl.
ed is the standard text editor!
https://www.gnu.org/fun/jokes/ed-msg.en.html
love it.