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