BSD 3 development
[unix-history] / usr / lib / learn / editor / L19.2a
CommitLineData
fd15fd37
BJ
1#print
2To avoid just accumulating lines forever, you need some
3way of getting rid of them. The 'd' command (delete) removes
4lines you don't want. Since it also removes lines that
5you do want if you tell it to, you should be careful
6with this command. Deleting one line at a time
7is always pretty safe. For example
8 5d
9will delete line 5 of a file. Try the following
10sequence; note that I've used "cat"
11for a change.
12
13cat bmt
14ed bmt
155d
16w
17q
18cat bmt
19ready
20#create Ref
2114th st
2223rd st
2328th st
2434th st
25times square
2649th st
2757th st
28#create bmt
2914th st
3023rd st
3128th st
3234th st
3342nd st
34times square
3549th st
3657th st
37#user
38#cmp bmt Ref
39#log
40#next
4119.3b 3
4219.2c 8