Annotation of 42BSD/usr.lib/learn/editor/L14.1a, revision 1.1.1.1

1.1       root        1: #print
                      2: You can also use the "=" command to find out what
                      3: the 'current' line is.  Since the
                      4: current line is referred to as '.', do you see that
                      5:   .=
                      6: is the appropriate command to print the current line
                      7: number?  So if you go through a sequence like
                      8:   3p
                      9:   .=
                     10: the second command will print '3'.  That's not very
                     11: exciting, so why don't you edit file 'roger',
                     12: print the next to last line, and then use '.='
                     13: to find out what it is.  Don't forget to exit
                     14: from the editor with w, and then q.  Then
                     15: finish by typing "answer N" where
                     16: N is what you found, as usual.
                     17: #create roger
                     18: this is a short
                     19: file containing five lines
                     20: of which 
                     21: this line is next to last
                     22: indeed
                     23: #copyin
                     24: #user
                     25: #uncopyin
                     26: #match 4
                     27: #log
                     28: #next
                     29: 15.1a 10
                     30: 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.