|
|
1.1 root 1: #print
2: How would you print from the first line of a file to
3: the next to last line (thus printing all but the last
4: line of something)? I'll put you in the editor - do that
5: and then type the usual w, q and ready.
6: #create Ref
7: :Boroughs
8: Manhattan
9: Brooklyn
10: Queens
11: the Bronx
12: Staten Island
13: :"file" 7 lines, 92 characters
14: #create file
15: Boroughs
16: Manhattan
17: Brooklyn
18: Queens
19: the Bronx
20: Staten Island
21: Don't print this line!
22: #copyout
23: #pipe
24: ex +'set prompt noopt open' file
25: #user
26: #unpipe
27: #uncopyout
28: tail -7 .ocopy >X1
29: #cmp X1 Ref 7
30: #log
31: #next
32: 10.1b 5
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.