|
|
1.1 root 1: #print
2: Is there just as easy a way of
3: printing the immediately preceding line?
4: Not quite, but almost. The line
5:
6: -
7:
8: will print the line just before the line you
9: are on. What's the equivalent command
10: in terms of "." and "p"? Type "answer COMMAND"
11: when you figure it out. Again, you can experiment
12: first; the same file named "pres" is in this directory.
13: #create pres
14: George Washington
15: John Adams
16: Thomas Jefferson
17: James Madison
18: James Monroe
19: John Quincy Adams
20: Andrew Jackson
21: Martin van Buren
22: William Henry Harrison
23: John Tyler
24: James K. Polk
25: Franklin Pierce
26: Millard Fillmore
27: James Buchanan
28: Abraham Lincoln
29: #copyin
30: #user
31: #uncopyin
32: #match .-1p
33: The "p" isn't needed.
34: #match .-1
35: #log
36: #next
37: 57.1a 10
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.