BSD 3 development
[unix-history] / usr / lib / learn / editor / L20.2b
CommitLineData
fd15fd37
BJ
1#print
2There is an easier way to do that. You can just say
3 5c
4 input text for new version
5 .
6using the 'c' command ('c' stands for 'change') which
7will delete the old version of the line and
8replace it. Note that the input text after 'c' ends
9with a '.' just like the text after the 'a' or 'i' commands.
10This directory contains a file named "lineup". Change
11the third line to read "neal walk" and print the file
12before and after. Use a sequence like this, ending in ready:
13
14ed lineup
151,$p
163c
17neal walk
18.
191,$p
20w
21q
22ready
23
24#create Ref
25walt frazier
26earl monroe
27neal walk
28bill bradley
29spencer haywood
30#create lineup
31walt frazier
32earl monroe
33john gianelli
34bill bradley
35spencer haywood
36#user
37#cmp lineup Ref
38#log
39#next
4020.2c 5