blob: 0edac7f15d30b343dce7cb2f715cd1c4f7cf3a53 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001NAME
2 ed0
3
4DESCRIPTION
5 When in 'ed', the prompt is ':'.
6
7 Ed has two modes, command mode and insert mode. The insert
8 mode has no prompt. You exit the insert mode by typing a
9 single '.' on a line.
10
11 All commands have the following syntax:
12
13 X,Ycmd
14
15 or
16
17 Xcmd
18
19 For example:
20
21 1,10p
22 Will print line 1 to 10.
23 1,5d
24 Will delete line 1 to 5.
25 8p
26 Will print line 8.
27 A '.' is the "current line". The current line is the last line
28 referenced. If you want to print last line + 10 more:
29 .,.+10p
30
31NOTE
32 These manpages seem a bit antique, though still correct. For a
33 better detailed help, invoke ed and use the ``h'' command.
34 Also you could look into the man page for ed(1) on you nearest
35 Unix box. And for a bit of fun you can try the good old
36 quiz(6), invoke as ``quiz function ed-command''.
37
38SEE ALSO
39 ed1(LPC), ed(E)