Commit | Line | Data |
---|---|---|
3eb5d546 C |
1 | |
2 | As with other commands, you can specify a line | |
3 | number in front of the 's' command. Thus | |
4 | 3s/x/a/ | |
5 | will change the first 'x' to an 'a' on the third line | |
6 | of the current file. Pick up file 'town' and | |
7 | change the 'q' on the last line to a 'p'. Then | |
8 | rewrite the file and type 'ready'. | |
9 | #create Ref | |
10 | south orange | |
11 | maplewood | |
12 | millburn | |
13 | short hills | |
14 | summit | |
15 | new providence | |
16 | #create town | |
17 | south orange | |
18 | maplewood | |
19 | millburn | |
20 | short hills | |
21 | summit | |
22 | new qrovidence | |
23 | #user | |
24 | #cmp town Ref | |
25 | #log | |
26 | #next | |
27 | 31.1a 10 |