灯火互联
管理员
管理员
  • 注册日期2011-07-27
  • 发帖数41778
  • QQ
  • 火币41290枚
  • 粉丝1086
  • 关注100
  • 终身成就奖
  • 最爱沙发
  • 忠实会员
  • 灌水天才奖
  • 贴图大师奖
  • 原创先锋奖
  • 特殊贡献奖
  • 宣传大使奖
  • 优秀斑竹奖
  • 社区明星
阅读:2687回复:0

[系统教程]DOS命令大全:Edlin:m (move)命令详解

楼主#
更多 发布于:2012-08-31 19:04


将您指定的连续行块移动到内存中文件的其它位置。
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命令注释


为行重编号。移动行后,请使用 l (list) 子命令来显示重新正确编号的行。

重叠行号为 line3 指定的行不能是要移动行块的一部分。例如,下面的命令导致出错信息:
5,10,8m
如果要用这种方法重叠行数,则 Edlin.exe 无法完成移动操作并显示如下消息:
Entry error

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


喜欢0 评分0
游客

返回顶部