DOS命令大全:Edlin:m (move)命令详解

将您指定的连续行块移动到内存中文件的其它位置。

MS-DOS命令语法

[line1],[line2],line3m

[line1],[+n],line3m

MS-DOS命令参数

line1
指定要 Edlin.exe 移动的第一行。
line2
指定要 Edlin.exe 移动的最后一行。
line3
必需指定要 Edlin.exe 在其前面移动行块的行。
+n
指定要 Edlin.exe 移动的行数,以 line1中指定的行开头,并包括接下来的 n 行。如果忽略 line1,则当前行是 Edlin.exe 移动的行块的起点。

MS-DOS命令注释

MS-DOS命令范例

在本示例中,以下文件在内存中并准备编辑。当在 * 提示符下使用 l (list) 子命令时,Edlin.exe 将显示文件的内容。

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 fine work.
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
16:Contoso, Ltd
17:"A World Leader in Technology"

要移动备忘录开头的笺言(即,将第 16 行和第 17 行移动到第 1 行之前),请键入:

16.17.1m

在 * 提示符下,键入 l (list) 子命令来查看已编辑的文件。Edlin.exe 显示如下:

1: Contoso, Ltd
2:"A World Leader in Technology"
3:Dear Mr. Muth:
2:
5: Congratulations on your promotion
4:to the position of Senior Chemical
7:EngineerI continue to be most
8:impressed with your fine work.
7:
10: I think you will enjoy working with
9:Mr. Lang on the new project.Please
12:let me know if there is anything I
13:can do to assist you.
15: Sincerely,
16:
Clay Martin, President

要将行块(包括当前行到以下的 25 行)移动到第 100 行之前,请键入:

,+25,100m

上一页:DOS命令大全:Edlin:[line]命令详解 下一页:DOS命令大全:Edlin:p (page)命令详解

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