BSD 3 development
[unix-history] / usr / lib / learn / editor / L57.1a
CommitLineData
fd15fd37
BJ
1#print
2For symmetry, you can use
3
4+
5
6instead of either ".+1p" or an empty
7line (just a newline). The only advantage
8that + has is that you can repeat it:
9
10++
11
12prints the second following line, and
13
14+++
15
16the third. The same is true of -.
17If the current line is line number 10,
18what line number is -- going to be?
19(Hint: you can find out by editing a file
20such as "pres", saying "10p", and then
21saying "--", and then saying ".=" - remember
22the "=" command?)
23When you find out, type "answer N" where
24N is the number.
25#create pres
26George Washington
27John Adams
28Thomas Jefferson
29James Madison
30James Monroe
31John Quincy Adams
32Andrew Jackson
33Martin van Buren
34William Henry Harrison
35John Tyler
36James K. Polk
37Franklin Pierce
38Millard Fillmore
39James Buchanan
40Abraham Lincoln
41#copyin
42#user
43#uncopyin
44#match 8
45#log
46#next
4760.1a 10
4860.2a 5