Commit | Line | Data |
---|---|---|
3eb5d546 C |
1 | |
2 | Now that you know how to add lines to a file, | |
3 | you will want to know how to get rid of them. | |
4 | The command | |
5 | 5d | |
6 | will delete line 5 of a file. The command | |
7 | .d | |
8 | will delete the current line. | |
9 | In the file 'pres' either the 5th or 6th line | |
10 | is wrong. Print those lines and delete the bad | |
11 | one; then rewrite the corrected file. | |
12 | Then type 'ready'. | |
13 | #create Ref | |
14 | george washington | |
15 | john adams | |
16 | thomas jefferson | |
17 | james madison | |
18 | james monroe | |
19 | john quincy adams | |
20 | andrew jackson | |
21 | martin van buren | |
22 | william henry harrison | |
23 | john tyler | |
24 | #create pres | |
25 | george washington | |
26 | john adams | |
27 | thomas jefferson | |
28 | james madison | |
29 | james monroe | |
30 | this is wrong Qwertyuiop | |
31 | john quincy adams | |
32 | andrew jackson | |
33 | martin van buren | |
34 | william henry harrison | |
35 | john tyler | |
36 | #pipe | |
37 | #user | |
38 | #unpipe | |
39 | #cmp pres Ref | |
40 | #log | |
41 | #next | |
42 | 19.1b 10 |