Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

ex (text editor)

From Wikipedia, the free encyclopedia
Line-oriented text editor
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Ex" text editor – news ·newspapers ·books ·scholar ·JSTOR
(December 2012) (Learn how and when to remove this message)
ex
Screenshot of ex mode opening a file and commands (viaNeovim)
Original authorBill Joy
Initial releaseMarch 9, 1978; 47 years ago (1978-03-09) (as part of 1BSD)
Written inC
Operating systemUnix
PlatformCross-platform
TypeText editor

ex (short forextended)[1][2][better source needed] is aline editor based on and intended as an improvement toed, the originalUnix editor. Today, it is standardized byPOSIX.[3]

George Coulouris ofQueen Mary College developed an improved version of ed called em in 1975 that took advantage ofvideo terminals.[4] While visiting Berkeley, Coulouris presented em toBill Joy, who modified it along with Charles Haley to be less demanding of the processor.[5][6] The editor became ex[7] and got included in theBerkeley Software Distribution.

Later, ex was enhanced to support full-screen editing via a new, visualmode. Thevi text editor is, in fact, ex running in visual mode. The program can be started in either the visual or legacy mode (via commandvi vs.ex) and the user can switch between modes at runtime. And, in visual mode, ex commands can be issued at the colon (:) prompt. Even though vi is just a mode of ex, the editor is more commonly called vi today instead of ex. In fact, some programs such asvim provide both vi and ex compatibility modes such that neither vi nor ex are the program per se.

The core ex commands which relate to search and replace are essential to vi. For instance, the ex command:%s/XXX/YYY/g replaces every instance ofXXX withYYY, and works in vi too. The% means every line in the file. The 'g' stands for global and means replace every instance on every line (if it was not specified, then only the first instance on each line would be replaced).

See also

[edit]

References

[edit]
  1. ^"vi editor history:ex".Archived from the original on 2023-06-12. Retrieved2021-06-05.
  2. ^"A Brief History of Vim:1976". Archived fromthe original on 2021-06-05. Retrieved2021-06-05.
  3. ^ex – Shell and Utilities Reference,The Single UNIX Specification, Version 5 fromThe Open Group
  4. ^"George Coulouris: Bits of History".Archived from the original on 2023-06-12. Retrieved2017-03-18.
  5. ^William N. Joy,Ex reference manualArchived 2023-05-25 at theWayback Machine, November, 1977
  6. ^"ex manual page".Archived from the original on 2025-05-24. Retrieved2025-08-09.
  7. ^Salus, Peter H. (2005).The Daemon, the Gnu and the Penguin.Groklaw. Archived from the original on May 5, 2010.

External links

[edit]
The WikibookGuide to Unix has a page on the topic of:Commands
File system
Processes
User environment
Text processing
Shell builtins
Searching
Documentation
Software development
Miscellaneous
Retrieved from "https://en.wikipedia.org/w/index.php?title=Ex_(text_editor)&oldid=1336332563"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp