BSD 3 development
[unix-history] / usr / lib / learn / editor / L31.1a
CommitLineData
fd15fd37
BJ
1#print
2I hope you have been checking the effects of your
3substitutions by using the 'p' command before and
4after the changes. This is so often desired that
5you may type the 'p' on the same line, after the 's'
6command. Thus
7 s/ab/cd/p
8changes 'ab' to 'cd' and prints the line after the change.
9In this directory there is a file named 'tree'. Try changing
10the fourth line, which now reads
11 spruxx
12to read
13 spruce
14and then rewrite the file, and type 'ready'.
15#create Ref
16pine
17fir
18hemlock
19spruce
20birch
21beech
22hickory
23maple
24#create tree
25pine
26fir
27hemlock
28spruxx
29birch
30beech
31hickory
32maple
33#user
34#cmp Ref tree
35#log
36#next
3732.1a 10
3831.2b 5