|
|
1.1 root 1: #print
2: Often you want to refer to the last line
3: of the file. You don't have to know the number
4: of lines in the file to do that; there
5: is a special address, "$", that always
6: refers to the last line. So you
7: can print the last line of a file with $p;
8: try that, then type w, q and ready as usual.
9: #create Ref
10: :This is the end of the file and the line you should print.
11: :"file" 3 lines, 95 characters
12: #create file
13: don't print this line
14: or this one
15: This is the end of the file and the line you should print.
16: #copyout
17: #pipe
18: ex +'set prompt noopt open' file
19: #user
20: #unpipe
21: #uncopyout
22: tail -2 .ocopy >X1
23: #cmp X1 Ref 2
24: #log
25: #next
26: 10.3b 5
27: 10.3c 10
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.