If you’re using any Unix at all, then ed really will always be there, no matter how old or limited the system. So as it turns out, my Arch Linux setup does not actually have ed.
If you’re using any Unix at all, then ed really will always be there, no matter how old or limited the system. Well, unless you use Arch Linux, anyway.
Actually using Ed
21–30 of 92 posts
Re: Actually using Ed
#22Earlier quoted context omitted.
If you’re using any Unix at all, then ed really will always be there, no matter how old or limited the system. Well, unless you use Arch Linux, anyway.
Yeah, I corrected that after I noticed a few people commenting to that effect. :)
My bad. I just assumed he skimmed the article as I often do.
Either way, thanks for the article. I've considered my grip on native Unix tools to be a weakness, but there's generally not much good intro material like this.
Re: Actually using Ed
#23Like burnt in from the 80's.
Re: Actually using Ed
#24Because maybe I'm not clever enough but I don't find the man page articles to be very good introductions. As reminders of syntax and options and functionality they're great, but I don't find them useful as orientations to how the various utilities work. They are short on examples and demonstrations, which are often the quickest orientations to the basic operation of a tool.
The info tool is sometimes better but not so frequently I'm accustomed to using it. On Ubuntu 'info ed' actually looks pretty good from an example standpoint. But 'info awk' looks like a copy of the man page. And 'info vi' offers a discussion of the emacs vi emulator, about which vi enthusiasts can only mutter "well played".
It would be nice if there were a 'tutorial' command (or 'dontpanic' or 'towel') which gave a brief orientation to how these tools actually worked, with examples and demos, and then some lead into resources on the host (man pages, info, help available within the particular tool) and on the web and elsewhere.
Re: Actually using Ed
#25I love ed. A long time ago when I was mastering it, I made an ed cheat sheet. Here it is the article about it: http://www.catonmat.net/blog/ed-unix-text-editor-cheat-sheet... And here is the cheat sheet itself: pdf: http://www.catonmat.net/download/ed.text.editor.cheat.sheet.... txt: http://www.catonmat.net/download/ed.unix.text.editor.cheat.s... doc: http://www.catonmat.net/download/ed.text.editor.cheat.sheet....
Re: Actually using Ed
#26Re: Actually using Ed
#27 -e --ed
Output an ed script.
http://en.wikipedia.org/wiki/Diff#Edit_scriptRe: Actually using Ed
#28Don't miss out on the emacs/ed/vi jokes: http://www.gnu.org/fun/jokes/ed-msg.html
Let's look at a typical novice's session with the mighty ed:
golem> ed
?
help
?
?
?
quit
?
exit
?
bye
?
hello?
?
eat flaming death
?
^C
?
^C
?
^D
?
---
Note the consistent user interface and error reportage. Ed is
generous enough to flag errors, yet prudent enough not to overwhelm
the novice with verbosity.Re: Actually using Ed
#29Don't miss out on the emacs/ed/vi jokes: http://www.gnu.org/fun/jokes/ed-msg.html