Bell 32V development
[unix-history] / usr / lib / learn / editor / L6.2a
CommitLineData
00b28f22
TL
1#print
2How does the editor choose a line to print?
3It always remembers a 'current line', which
4is the last line of the file originally,
5but you can choose any line you want. The command
6
73p
8
9prints the third line of the file, for example.
10And
11
121p
13
14prints the first line. Note that is the digit one
15there, not the letter l, no matter how much alike they
16look. I'll put you into the editor with the
17file listed below: print the first line,
18then type 'w', 'q' and 'ready' as usual.
19#create Ref
20george washington
2191
22#create file
23george washington
24john adams
25thomas jefferson
26james madison
27james monroe
28john quincy adams
29#print file
30#copyout
31#pipe
32ed file
33#user
34#unpipe
35#uncopyout
36tail -2 .ocopy >X2
37#cmp Ref X2
38#log
39#next
406.2b 5