Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Edlin

From Wikipedia, the free encyclopedia
(Redirected fromEDLIN)
For other uses, seeEdlin (disambiguation).
Edlin
Original author(s)Tim Paterson
Developer(s)Microsoft,IBM, Gregory Pietsch
Initial release1980; 45 years ago (1980)
Written inMS-DOS:x86 assembly language
Operating system86-DOS,IBM PC DOS,MS-DOS,FreeDOS,OS/2,eComStation,ArcaOS,Windows
SuccessorMS-DOS Editor
TypeLine editor
LicenseMS-DOS:MIT
FreeDOS, ReactOS:GPL
86-DOS, PC DOS, OS/2, Windows:Proprietarycommercial software
WebsiteEdlin

Edlin is aline editor, and the onlytext editor provided with early versions ofIBM PC DOS,[1]MS-DOS andOS/2.[2] Although superseded in MS-DOS 5.0 and later by the full-screenMS-DOS Editor, and byNotepad inMicrosoft Windows, it continues to be included in the 32-bit versions of current Microsoft operating systems.

History

[edit]
EDLIN.COM (among several other commands) inIBM PC DOS 1.0
Using EDLIN for typing Japanese with theATOK 8 input method editor, running onMS-DOS 3.3C for thePC-9800 series

Edlin was created byTim Paterson in two weeks in 1980, forSeattle Computer Products's86-DOS (QDOS)[3] based on theCP/M context editorED,[4][5] itself distantly inspired by theDEC PDP-10TOPS-10 EDIT text editor.

Microsoft acquired 86-DOS and, after some further development, sold it as MS-DOS, so Edlin was included in v1.0–v5.0 of MS-DOS. From MS-DOS 6 onwards, the only editor included was the new full-screenMS-DOS Editor.

Windows 95,98 andME ran on top of an embedded version of DOS, which reports itself asMS-DOS 7. As a successor to MS-DOS 6, this did not include Edlin.

However, Edlin is included in the 32-bit versions ofWindows NT[6] and its derivatives—up to and includingWindows 10—because theNTVDM's DOS support in those operating systems is based on MS-DOS version 5.0. However, unlike most other external DOS commands, it has not been transformed into a nativeWin32 program. It also does not supportlong filenames, which were not added to MS-DOS and Windows until long after Edlin was written.

TheFreeDOS version was developed by Gregory Pietsch.[7]

Usage

[edit]

There are only a few commands. The short list can be found by entering a ? at the edlin prompt.

When a file is open, typing L lists the contents (e.g.,1,6L lists lines 1 through 6). Each line is displayed with a line number in front of it.

*1,6L       1: Edlin: The only text editor in early versions of DOS.       2:       3: Back in the day, I remember seeing web pages       4: branded with a logo at the bottom:       5: "This page created in edlin."       6: The things that some people put themselves through. ;-)*

The currently selected line has a *. To replace the contents of any line, the line number is entered and any text entered replaces the original. While editing a line pressing Ctrl-C cancels any changes. The * marker remains on that line.

Entering I (optionally preceded with a line number) inserts one or more lines before the * line or the line given. When finished entering lines, Ctrl-C returns to the edlin command prompt.

*6I       6:*(...or similar)       7:*^C  *7D*L       1: Edlin: The only text editor in early versions of DOS.       2:       3: Back in the day, I remember seeing web pages       4: branded with a logo at the bottom:       5: "This page created in edlin."       6: (...or similar)*
i - Inserts lines of text.
D - deletes the specified line, again optionally starting with the number of a line, or a range of lines. E.g.:2,4d deletes lines 2 through 4. In the above example, line 7 was deleted.
R - is used to replace all occurrences of a piece of text in a given range of lines, for example, to replace a spelling error. Including the ? prompts for each change. E.g.: To replace 'prit' with 'print' and to prompt for each change:?rprit^Zprint (the ^Z represents pressing CTRL-Z). It is case-sensitive.
S - searches for given text. It is used in the same way as replace, but without the replacement text. A search for 'apple' in the first 20 lines of a file is typed1,20?sapple (no space, unless that is part of the search) followed by a press of enter. For each match, it asks if it is the correct one, and accepts n or y (or Enter).
P - displays a listing of a range of lines. If no range is specified, P displays the complete file from the * to the end. This is different from L in that P changes the current line to be the last line in the range.
T - transfers another file into the one being edited, with this syntax: [line to insert at]t[full path to file].
W - (write) saves the file.
E - saves the file and quits edlin.
Q - quits edlin without saving.

Scripts

[edit]

Edlin may be used as a non-interactive file editor in scripts byredirecting a series of edlin commands.

edlin < script

FreeDOS Edlin

[edit]

AGPL-licensedclone of Edlin that includes long filename support is available for download as part of theFreeDOS project. This runs on operating systems such asLinux orUnix as well as MS-DOS.[8]

See also

[edit]

References

[edit]
  1. ^"Disk Operating System"(PDF).Bitsavers.org. January 1982. Retrieved24 January 2022.
  2. ^"OS/2 1.0".Os2museum.com.
  3. ^"A Short History of MS-DOS".Patersontech.com. Archived fromthe original on 2019-05-18.
  4. ^"ED Utility".Shaels.net. Archived fromthe original on 20 June 2013. Retrieved24 January 2022.
  5. ^"ED: A Context Editor for The CP/M Disk System".archive.org. 1978. Retrieved8 May 2023.
  6. ^16-Bit Applications Included with Windows NT, Microsoft.com
  7. ^"FreeDOS Package -- edlin (FreeDOS Base)".Ibiblio.org.
  8. ^"FreeDOS Edlin".Sourceforge.net. 3 March 2023.

Further reading

[edit]

External links

[edit]
Wikibooks has a book on the topic of:Guide to Windows Commands
Ecosystem
Interpreters
Terminals
File system navigation
File management
Archiving
Disk management
Processes
Registry
User environment
File contents
Scripting
Networking
Maintenance and care
Boot management
Software development
Miscellaneous
Retrieved from "https://en.wikipedia.org/w/index.php?title=Edlin&oldid=1277464933"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp