OD

OD is on all Unix- and Unix similar systems (indifferent as old or as new) more available Text editor, that interactively or within ShellSkripten for working on by text files to be used can.

Like the editors ex and vi, but in contrast to Plan-9Editor SAM, works OD line orientated: The text processing always refers to a line or a selection of lines. In contrast to vi places OD with the interactive use also only one line for treatment for the order, D.h. it is not possible, to move vertically by the text.

As the other editors mentioned orders OD over a writing and an instruction mode. In the write mode the entered indications of the line become, the straight is worked on, added. In the instruction mode entered indications become as working on -, Opinion -, Memory or shell instructions interprets. Text corrections and/or. replacements become v.A. over sample searches by means of regular expressions made.

OD used only few memory resources, needs for the execution no special program libraries and functions with each kind of terminals. OD is as a usually only editor in the first binary file listing of the listing tree (/are) and can thereby always then be called, if at all a program can be implemented. The Anspruchslosigkeit of the editor and its reliable availability and accesibility are the most important aspects, under which it also today still, in particular for System administrators, is interesting. There that OD after the call first only one line of the screen for itself demands, it is useful occasionally also then, if a certain change z.B. in a shell script to be made is, one however gleichzeitg the display output of the process from the eye, started last, to lose does not want. Besides programs without circumstance from the editor can be called: The display output of the program remains again visible and one can circumstanceless the line further work on, to before the call of the program one worked. For those, the editors particularly to the letter of texts use, are visual editors how vi, SAM or emacs more practically and more intuitively than that OD.

History

OD is as old as Unix, has however already a forerunner in the indication-oriented first, later line orientated editor QED, the center of the 60's of the last century one programmed, and of that it different versions on different systems gave. OD became at the beginning of the 70's of Ken Thompson written. Neither in functionality, still in the feature it changed since at that time substantially. The not interactive indication current editor sed beerbt that OD in one of its basic functions and it develops, the line orientated editor ex, that the basis of the vi forms, is through OD inspired. The Plan-9-Editor SAM resembles OD, breaks however with the line orientatedness and is conceived as a primarily visual editor.

Use

The interactive use of the OD is detailed in the manual sides (one pages) described each Unix(artigen) system (call: one OD). The following example demonstrates the non-interactive (indication current editor -) use from the shell command line:

$ echo ' 1,# $$s/> vi exg w q ' | OD FILE

In the example becomes OD with the file FILE called, on ODTextersetzungsbefehl is used:

"from first to the last line: Replace each character sequence vi by the character sequence ex. Write back the worked on file. Terminate."

Web on the left of

 

  > German to English > de.wikipedia.org (Machine translated into English)