Bell 32V development
[unix-history] / usr / lib / learn / editor / L51.1a
CommitLineData
00b28f22
TL
1#print
2You can also use relative addresses of the +1 or -1
3sort with context searches. For example, to
4print the line after a line containing "cat",
5you can say
6 /cat/+1p
7How would you print the line before the next line
8containing the word "help" at the beginning
9of the line? Try some experiments if you want,
10but in the end type "answer COMMAND" where COMMAND
11is the correct command to do that.
12#copyin
13#user
14#uncopyin
15#match /^help/-1p
16#match /^help/-1
17#match /^help/-
18#match /^help/-p
19#succeed
20The "p" isn't necessary, of course.
21#cmp X1 X2
22#log
23#next
2452.1a 10
2552.2a 5