Annotation of 43BSD/usr.lib/learn/editor/L13.3a, revision 1.1.1.1

1.1       root        1: #print
                      2: The 'nu' command works the same way as 'p',
                      3: except that it puts the line number to the
                      4: left of each line that it prints.
                      5: 
                      6: I will put you in the editor with the file 'henry'.  Type
                      7: 
                      8: 1,$nu
                      9: 
                     10: and then write, quit, and type ready as usual.
                     11: Note that the line numbers do not actually become part
                     12: of the text of the file, but just appear displayed
                     13: next to it.
                     14: #create henry
                     15: Murray Hill
                     16: Holmdel
                     17: Whippany
                     18: Madison
                     19: Piscataway
                     20: Chester
                     21: Warren
                     22: #pipe
                     23: #copyin
                     24: ex +'set prompt noopt open' henry
                     25: #user
                     26: #uncopyin
                     27: #unpipe
                     28: grep '1,$nu' .copy > /dev/null
                     29: #log
                     30: #next
                     31: 14.1a 10
                     32: 14.2a 5

unix.superglobalmegacorp.com

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