blob: 379e1da89b5001ed05c7ffce0ee4b214d47e275e (
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
37
|
#print
Although specifying lines by line number is
easy to understand, it is hard to do in a long
file. You will therefore want to learn other
ways of addressing lines. The 'current line'
is addressed with the symbol
.
so that it can be printed, for example with
.p
just as you could print a line by "3p".
Try that in this file; the current line is
set to the last line of the current file.
Try ".p"; then "w", "q", and "ready" as usual.
Here's the full file -
#create Ref
john quincy adams
91
#create file
george washington
john adams
thomas jefferson
james madison
james monroe
john quincy adams
#print file
#copyout
#pipe
ed file
#user
#unpipe
#uncopyout
tail -2 .ocopy >X1
#cmp X1 Ref
#log
#next
7.1b 10
|