Ex (text editor)

Ex (text editor)

ex, short for EXtended, is a line editor for Unix systems.

The original ex was an advanced version of the standard Unix editor ed, included in the Berkeley Software Distribution. ex is similar to ed, with the exception that some switches and options are modified so that they are more user-friendly.

ex was eventually given a screen oriented visual interface (adding to its command line oriented operation), thereby becoming the vi text editor. In recent times, ex is implemented as a personality of the vi program; most variants of vi still have an "ex mode", which is invoked using the command ex, or from within vi for one command by typing the : (colon) character. Although there is overlap between ex and vi functionality, some things can only be done with ex commands, so it remains useful when using vi.

The core ex commands which relate to search and replace are essential to vi. For instance, the ex command issued from vi :1,$s/XXX/YYY/g replaces every instance of XXX with YYY. The 1,$ means every line in the file (a synonym for this is the percent sign). The 'g' means replace every instance on every line (if it was not specified, then only the first instance on each line would be replaced).

ex has a synonym e in HP-UX environments.

witches

ex recognises the following switches:

* - (obsolete) suppresses user-interactive feedback
* -s (XPG4 only) suppresses user-interactive feedback
* -l sets lisp editor option
* -r recover specified files after a system crash
* -R sets readonly
* -t tag Edit the file containing the specified tag
* -v invoke visual mode (vi)
* -w set window size "n"
* -x set encryption mode
* -C encryption option
* file specifies file to be edited

ee also

*List of Unix programs


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Text editor — A text editor is a type of program used for editing plain text files. Text editors are often provided with operating systems or software development packages, and can be used to change configuration files and programming language source… …   Wikipedia

  • Text Editor and Corrector — TECO (pronounced /tee koh/; originally an acronym for [paper] Tape Editor and COrrector , but later Text Editor and COrrector ) is a text editor originally developed at the Massachusetts Institute of Technology (MIT) in the 1960s, after which it… …   Wikipedia

  • text editor — noun 1. an editor who prepares text for publication • Syn: ↑copy editor, ↑copyreader • Derivationally related forms: ↑copyread (for: ↑copyreader) • Hypernyms: ↑ …   Useful english dictionary

  • Text Editor and Corrector — TECO (pronunciado /tee koh/; originalmente un acrónimo para [paper] Tape Editor and COrrector, pero más tarde Text Editor and COrrector) es un editor de texto originalmente desarrollado en el MIT en la decáda de 1960, después de la cual fue… …   Wikipedia Español

  • text editor — UK / US noun [countable] Word forms text editor : singular text editor plural text editors computing a computer program that allows you to create and edit written documents …   English dictionary

  • Text-Editor — tekstų redaktorius statusas T sritis automatika atitikmenys: angl. text editor vok. Text Editor, m rus. редактор текста, m; текстовый редактор, m pranc. éditeur de texte, m …   Automatikos terminų žodynas

  • text editor — tekstų redaktorius statusas T sritis automatika atitikmenys: angl. text editor vok. Text Editor, m rus. редактор текста, m; текстовый редактор, m pranc. éditeur de texte, m …   Automatikos terminų žodynas

  • text editor — rašyklė statusas T sritis informatika apibrėžtis Programa, skirta tekstiniams dokumentams rengti. Rašyklių pavyzdžiai: „MS Word“, „Tekstų doroklis“ („Word Pad“). Dar vartojama tekstų redaktorius. atitikmenys: angl. composer; editor; text editor;… …   Enciklopedinis kompiuterijos žodynas

  • text editor — text editing, adj. Computers. a program for editing stored documents, performing such functions as adding, deleting, or moving text. [1970 75] * * * …   Universalium

  • text editor — text′ ed itor n. cmp a computer program for writing and modifying documents or program code on screen, usu. having little or no formatting ability • Etymology: 1970–75 text′ ed it•ing, adj …   From formal English to slang

  • EDT text editor — There are at least two major text editors named EDT. One was made by Digital Equipment Corporation, the other by what was then Sperry Univac, which later became Unisys.DigitalEDT was a text editor that was developed by Digital Equipment… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”