DOS命令大全:Edlin:i (insert)命令详解

在所编辑的驻留内存的文件中指定的行号前插入行。如果不指定参数,i 将在当前行启动插入模式。

MS-DOS命令语法

i [line]

MS-DOS命令参数

line
指定要在其前面插入行的行号。line 的默认值是当前行号。

MS-DOS命令注释

MS-DOS命令范例

使用 l (list) 子命令后,屏幕上会出现如下文本:

1: Dear Mr. Muth:
2:
3: Congratulations on your promotion
4:to the position of Senior Chemical
5:EngineerI continue to be most
6:impressed with your work.
7:
7:
8: Sincerely,
9:
10: Clay Martin, President

要将文本插入第 8 行之前,请键入:

8I

Edlin.exe 显示如下:

8:*_

在第 8 行的插入点键入如下行:

8:*I think you will enjoy working with

每个新行完成时按 ENTER 键,并键入:

9: *Mr. Lang on the new project.Please
10:*let me know if there is anything I
11:*can do to assist you.

Edlin.exe 显示如下:

12:*_

按 ENTER 键插入一个空行,在下一行中按 CTRL+C 完成同样的插入。键入 1l 以查看下列正确重编号的行:

1: Dear Mr. Muth:
2:
3: Congratulations on your promotion
4:to the position of Senior Chemical
5:EngineerI continue to be most
6:impressed with your work.
7:
7:
8: I think you will enjoy working with
9:Mr. Lang on the new project.Please
10:let me know if there is anything I
11:can do to assist you.
13:*Sincerely,
14:
15: Clay Martin, President

上一页:DOS命令大全:Edlin:e (end)命令详解 下一页:DOS命令大全:Edlin:l (list)命令详解

版权所有 © 中山市飞娥软件工作室 证书:粤ICP备09170368号