Commit | Line | Data |
---|---|---|
fd15fd37 BJ |
1 | |
2 | Just as you can print several lines at once by | |
3 | giving a range of addresses with the 'p' command, | |
4 | you can delete several lines at once by giving | |
5 | two addresses. For example, | |
6 | 2,5d | |
7 | deletes lines 2, 3, 4 and 5 of the current file. The | |
8 | command | |
9 | 1,.-1d | |
10 | deletes all lines up to but not including the current line. | |
11 | And | |
12 | 1,$d | |
13 | deletes EVERY line. (Use with extreme caution, obviously.) | |
14 | There is a file named 'counties' in this directory. | |
15 | Throw away the first five lines of it and rewrite it. | |
16 | Then type 'ready' as usual. | |
17 | #create Ref | |
18 | Morris | |
19 | Warren | |
20 | Union | |
21 | Somerset | |
22 | Hunterdon | |
23 | #create counties | |
24 | Bergen | |
25 | Passaic | |
26 | Sussex | |
27 | Hudson | |
28 | Essex | |
29 | Morris | |
30 | Warren | |
31 | Union | |
32 | Somerset | |
33 | Hunterdon | |
34 | #pipe | |
35 | #user | |
36 | #unpipe | |
37 | #cmp counties Ref | |
38 | #log | |
39 | #next | |
40 | 20.1a 10 | |
41 | 20.2a 5 |