blob: 24475fce228a115b31e9b6841650d4d572a19d5c (
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
|
#print
Often you want to refer to the last line
of the file. You don't have to know the number
of lines in the file to do that; there
is a special address, "$", that always
refers to the last line. So you
can print the last line of a file with $p;
try that, then type w, q and ready as usual.
#create Ref
This is the end of the file and the line you should print.
95
#create file
don't print this line
or this one
This is the end of the file and the line you should print.
#copyout
#pipe
ed file
#user
#unpipe
#uncopyout
tail -2 .ocopy >X1
#cmp X1 Ref
#log
#next
10.3b 5
10.3c 10
|