Edlin: m (move)
Moves the block of consecutive lines you specify to another location in the file that is in memory.
line1 : Specifies the first line you want Edlin.exe to move.
line2 : Specifies the last line you want Edlin.exe to move.
line3 : Required. Specifies the line before which you want Edlin.exe to move the block of lines.
+n : Specifies the number of lines that you want Edlin.exe to move, beginning with the line specified in line1 and including the next n lines. If you omit line1, the current line is the starting point for the block of lines that Edlin.exe moves.
In this example, the following file is in memory and ready to edit. When you use the l (list) subcommand at the * prompt, Edlin.exe displays the contents of the file.
1: Dear Mr. Muth: 2: 3: Congratulations on your promotion 4: to the position of Senior Chemical 5: Engineer. I 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. 12: 13: Sincerely, 14: 15: Clay Martin, President 16: Contoso, Ltd 17: "A World Leader in Technology"
To move the motto at the beginning of the memo (that is, move lines 16 and 17 before line 1), type:
At the * prompt, type the l (list) subcommand to see the edited file. Edlin.exe displays the following:
1: Contoso, Ltd 2: "A World Leader in Technology" 3: Dear Mr. Muth: 4: 5: Congratulations on your promotion 6: to the position of Senior Chemical 7: Engineer. I continue to be most 8: impressed with your fine work. 9: 10: I think you will enjoy working with 11: Mr. Lang on the new project. Please 12: let me know if there is anything I 13: can do to assist you. 14: 15: Sincerely, 16: 17: Clay Martin, President
To move the block of lines, including the current line through the next 25 lines, to immediately before line 100, type: