Bell 32V development
[unix-history] / usr / lib / learn / editor / L6.1a
CommitLineData
00b28f22
TL
1#print
2You may well ask how the editor knows which line to print.
3The editor keeps track of the 'current line', which
4is usually the last line you touched in any way.
5When you begin editing a file, for example, the
6current line is the last line.
7If you want to print any particular line, however,
8that is easy. For example, to print the 3rd line you say
9
103p
11
12To print the first line
13
141p
15
16(That's a one, no matter how much it looks like the letter "l".)
17Here is a file: I'll put you into the editor
18with that file as the 'current file' - print the 4th line,
19then type 'w', 'q', and 'ready' as usual.
20#create Ref
21james madison
2291
23#create file
24george washington
25john adams
26thomas jefferson
27james madison
28james monroe
29john quincy adams
30#print file
31#copyout
32#pipe
33ed file
34#user
35#unpipe
36#uncopyout
37tail -2 .ocopy >X2
38#cmp Ref X2
39#log
40#next
417.1a 10