Using MS-DOS Edlin Utility to Edit Text FilesLast reviewed: November 21, 1994Article ID: Q67706 |
The information in this article applies to:
SUMMARYThis article outlines how to start and use Edlin, the MS-DOS file editing utility.
MORE INFORMATION
EDLIN CommandsThe following information is a list of EDLIN commands and their functionality. MS-DOS Command: EDLIN <Filename>
Display Commands Definition ---------------- ---------- L LIST: Displays listing of [RANGE] of lines. If [RANGE] is [RANGE] L not specified, L displays entire file or first 23 lines. P PAGE: Displays listing of [RANGE] of lines. If [RANGE] is [RANGE] p not specified, p displays entire file. This differs from LIST in that PAGE changes the current line to be the last line. S SEARCH: Searches [RANGE] of lines for [STRING]. [RANGE] s [STRING] Editing Commands Definition ---------------- ---------- C copy: Copies [RANGE] of lines to [LINE]. [RANGE],[LINE],[NUMBER] c [NUMBER] specifies how many copies to do. D DELETE: Deletes [RANGE] of lines. [RANGE] d I INSERT: Inserts new lines beginning at [LINE]. [LINE] i Use CTRL+C to exit insert mode. M MOVE: Moves [RANGE] of lines to position [LINE]. [RANGE],[LINE] m 15 LINE EDIT: Allows editing of line. [LINE] R REPLACE: Searches [RANGE] for [STRING1] and [RANGE] r [STRING1][STRING2] replaces it with [STRING2]. Disk Commands Definition ------------- ----------A APPEND: [NUMBER] a Reads [NUMBER] of lines from disk into memory. T TRANSFER: Merges [FILE] into current document [LINE] t [DRIVE:][\PATH][FILE] at [LINE]. W WRITE: Writes [NUMBER] of lines onto disk. [NUMBER] w Quit Options Definition ------------ ---------- Q QUIT: Quits Edlin without saving changes. E END: Quits Edlin after saving changes. |
KBCategory: kbusage kbdisplay kbtool
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |