BSD 4_1_snap development
[unix-history] / usr / lib / learn / editor / L9.2d
CommitLineData
3eb5d546
C
1#print
2The "." operator can be used with multiple
3addresses to refer to the current line
4in either the first or second position (or both).
5For example, you could print from the current line
6to the 6th line with
7 .,6p
8and similarly for any other line. I'll put
9you in the editor again, with the current line
10set in the middle of a short file; print from
11the current line position to the fifth line, and
12then type w, q and ready.
13#create Ref
14 2. UNIX
15 3. hardware
16 4. software
17 5. manuals
1897
19#create file
20 2. UNIX
21 3. hardware
22 4. software
23 5. manuals
24you shouldn't have printed this line.
25#copyout
26#pipe
27ed file
281t1
29#user
30#unpipe
31#uncopyout
32tail -5 .ocopy >X1
33#cmp X1 Ref
34#log
35#next
369.2e 5