Ed


 
 
Ed

The text editor ed was the original standard on the UNIX operating system. ed was originally written by Ken Thompson and he implemented regular expression in ed for the first time. Prior to that implementation, the concept of regular expressions was only formalized in a mathematical paper, which Ken Thompson had read. ed was influenced by an earlier editor known as QED from University of California at Berkeley, where Ken Thompson had graduated from. ed went on to influence ex, which in turn spawned vi. The non-interactive UNIX commands grep and sed were inspired by common special uses of ed; their influence is visible in the design of the programming language AWK, which in turn inspired aspects of Perl.

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

Famous for its terseness, ed has almost no visual feedback. For example, the message that ed will produce in case of error, or when it wants to make sure you want to quit without saving, is "?". It does not report the current filename or line number, or even display the results of a change to the text, unless requested. This terseness was appropriate in the early versions of UNIX, when consoles were teletypes, modems were slow, and hard disk and memory were precious, but these advantages ceased to apply when more interactive editors became the standards.

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

In current practice ed is rarely used interactively, but it does find use in some shell scripts. For interactive use, ed was subsumed by sam, vi and Emacs editors in the 1980s. ed can be found on virtually every version of UNIX and Linux available; people who have to work with multiple versions of UNIX often know at least the basic ed commands. If something goes wrong, and the OS is somehow not fully loaded, ed is sometimes the only editor available. This is often the only time when it is used interactively, aside maybe from torturing first year students.

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

The ed commands are often imitated in other line-based editors. For example, EDLIN in early MS-DOS versions had somewhat similar syntax, and text editors in many MUDs (LPMud and descendants, for example) use ed-like syntax. These editors, however, are typically more limited in function.

~ ~ ~ ~ ~ ~ ~ ~ ~ ~


 

Text editor: A text editor is a piece of computer software for editing plain text....

Ken Thompson: Kenneth Thompson (born February 4 1943) is a computer scientist, notable for his work on the Unix operating system....

Regular expression: A regular expression (abbreviated as regexp, regex, or regxp, with plural forms regexps, regexes, or regexen) is a string that describes or matches a set of strings, according to certain syntax rules. Regular expressions are used by many text editors and utilities to search and manipulate bodies of ...


Ed related Images and Photos (experimental)

Ed
Ed
Mr. Ed
Mr. Ed
Ed Reed
Ed Reed
Ed Wood
Ed Wood
Ed ''Too Tall'' Jones
Ed "Too Tall" Jones
Mr.Ed
Mr.Ed
Ed Bishop
Ed Bishop
Ed Begley
Ed Begley
Ed Belfour
Ed Belfour
Ed Sullivan
Ed Sullivan
Mr. Ed Print
Mr. Ed Print
Ed Devereaux
Ed Devereaux

~ Table of Content ~

Introduction
Example session
Explanation of the example
Bill Joy, vi, and ed
External links
 
FR: Ed (logiciel)


 

~ Related Subjects ~

Vi (2) - Unix (2) - Grep (2) - Perl (2) - Sed (2) - Text editor (2) - Computer software (1) - Plain text (1) - EDLIN (1) - LPMud (1) - MUD (1) - MS-DOS (1) - February 4 (1) - String (1) - Set (1) -
 

~ Community ~

History Forum
Come and discuss about History, Civilizations, Historical Events and Figures
History Web-Ring
A community of sites, blogs and forums dedicated to History. Do not hesitate to submit your site.