Annotation of 43BSD/usr.lib/learn/editor/L8.1a, revision 1.1

1.1     ! root        1: #print
        !             2: To move around, you can use simple arithmetic
        !             3: when specifying what to print.  For example,
        !             4:   3+1p
        !             5: is the same as
        !             6:   4p
        !             7: as an editor command.  Now that's not very interesting;
        !             8: but if the '.' current line pointer is line 3,
        !             9: then using
        !            10:   .+1p
        !            11: instead of 4p is helpful.
        !            12: For example, print the 3rd and 4th
        !            13: lines of the familiar file using first "3p" to
        !            14: get to line 3 and then ".+1p" to print the next line.
        !            15: End as usual with w, q, and ready.
        !            16: #create Ref
        !            17: :thomas jefferson
        !            18: :james madison
        !            19: :"file" 6 lines, 91 characters
        !            20: #create file
        !            21: george washington
        !            22: john adams
        !            23: thomas jefferson
        !            24: james madison
        !            25: james monroe
        !            26: john quincy adams
        !            27: #copyout
        !            28: #pipe
        !            29: ex +'set prompt noopt open' file
        !            30: #user
        !            31: #unpipe
        !            32: #uncopyout
        !            33: tail -3 .ocopy >X1
        !            34: #cmp Ref X1 3
        !            35: #log
        !            36: #next
        !            37: 9.1a 10
        !            38: 8.1b 7

unix.superglobalmegacorp.com

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