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

#print
For symmetry, you can use

+

instead of either ".+1p" or an empty line (just a newline).
The only advantage that + has is that you can repeat it:

++

prints the second following line, and 

+++

the third.  The same is true of -.  If the current line is
line number 10, what line number is -- going to be?
(Hint:  you can find out by editing a file such as "pres",
saying "10p", and then saying "--",
and then saying ".=" - remember the "=" command?)
When you find out, type "answer N" where
N is the number.
#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 8
#log
#next
60.1a 10
60.2a 5

unix.superglobalmegacorp.com

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