blob: 2e1e174500c161c8d85ee8b52ef8cb8fa90a8d81 (
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
|
#print
You can print an entire file making use
of the fact that "$" refers to the last line.
The command
1,$p
prints from the first line to the last one,
or the whole file. Try printing this
whole file with this command, and
then typing w, q and ready. Your commands
should look like
1,$p
w
q
ready
#create Ref
1,$p
w
q
#create file
New York Mets Managers
Casey Stengel
Wes Westrum
Gil Hodges
Yogi Berra
Roy McMillan
#copyin
#pipe
ed file
#user
#unpipe
#uncopyin
tail -3 .copy >X1
#cmp X1 Ref
#log
#next
10.2b 10
|