File:  [CSRG BSD Unix] / 43BSDReno / usr.bin / learn / learnlib / editor / L14.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
You can also use the "=" command to find out what
the 'current' line is.  Since the
current line is referred to as '.', do you see that
  .=
is the appropriate command to print the current line
number?  So if you go through a sequence like
  3p
  .=
the second command will print '3'.  That's not very
exciting, so why don't you edit file 'roger',
print the next to last line, and then use '.='
to find out what it is.  Don't forget to exit
from the editor with w, and then q.  Then
finish by typing "answer N" where
N is what you found, as usual.
#create roger
this is a short
file containing five lines
of which 
this line is next to last
indeed
#copyin
#user
#uncopyin
#match 4
#log
#next
15.1a 10
15.2a 5

unix.superglobalmegacorp.com

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