File:  [CSRG BSD Unix] / 43BSD / usr.lib / learn / editor / L56.1a
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

#print
Is there just as easy a way of
printing the immediately preceding line?
Not quite, but almost.  The line

-

will print the line just before the line you
are on.  What's the equivalent command
in terms of "." and "p"?  Type "answer COMMAND"
when you figure it out.  Again, you can experiment
first; the same file named "pres" is in this directory.
#create pres
George Washington
John Adams
Thomas Jefferson
James Madison
James Monroe
John Quincy Adams
Andrew Jackson
Martin van Buren
William Henry Harrison
John Tyler
James K. Polk
Franklin Pierce
Millard Fillmore
James Buchanan
Abraham Lincoln
#copyin
#user
#uncopyin
#match .-1p
The "p" isn't needed.
#match .-1
#log
#next
57.1a 10

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.