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