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