Tuesday, December 4, 2012

An Ed Tutorial

The ed man page starts famously with "The ed utility is the  standard  text  editor." It was the standard text editor in the first Unix version and continued to be the main interactive text editor until the appearance of vi.

No one uses this editor as a standalone anymore, but most of the power of vi is due to the ed (or ex) commands.

How to run ed


ed
e textfile


ed textfile

ed textfile < commandfile


References -

A Tutorial Introduction to the UNIX Text Editor
by Kernighan
Unix Seventh Edition Manual. (Volume 2A has the tutorial)
http://cm.bell-labs.com/7thEdMan/bswv7.html

ed(1) (Solaris 10 man page)
http://docs.oracle.com/cd/E19253-01/816-5165/6mbb0m9ee/index.html

No comments:

Post a Comment