BSD 4_1_snap development
[unix-history] / usr / lib / learn / editor / L10.3b
CommitLineData
3eb5d546
C
1#print
2You can print an entire file making use
3of the fact that "$" refers to the last line.
4The command
5 1,$p
6prints from the first line to the last one,
7or the whole file. Try printing this
8whole file with this command, and
9then typing w, q and ready. Your commands
10should look like
11 1,$p
12 w
13 q
14 ready
15#create Ref
161,$p
17w
18q
19#create file
20New York Mets Managers
21 Casey Stengel
22 Wes Westrum
23 Gil Hodges
24 Yogi Berra
25 Roy McMillan
26#copyin
27#pipe
28ed file
29#user
30#unpipe
31#uncopyin
32tail -3 .copy >X1
33#cmp X1 Ref
34#log
35#next
3610.2b 10