Annotation of 43BSD/usr.lib/learn/editor/L36.2c, revision 1.1

1.1     ! root        1: #print
        !             2: On the right side of a substitute, none of the other
        !             3: special characters mean anything unusual.  Thus, if you wanted to
        !             4: replace the letter 'a' by an asterisk, for example, the obvious
        !             5: can and would work:
        !             6: 
        !             7: s/a/*/p
        !             8: 
        !             9: Try, in the file "data", replacing the comma on the last line
        !            10: with a period.  Then rewrite the file and type "ready".
        !            11: #create Ref
        !            12:  Square Roots
        !            13: 1.00 1.00
        !            14: 2.00 1.42
        !            15: 3.00 1.73
        !            16: 4.00 2.00
        !            17: You really shouldn't be
        !            18: printing all of this file -
        !            19: did you forget that '$' is
        !            20: the address of the last
        !            21: line of a file?
        !            22: Use that instead of printing everything.
        !            23: 5.00 2.23
        !            24: 6.00 2.45
        !            25: 7.00 2.65
        !            26: 8.00 2.83
        !            27: #create data
        !            28:  Square Roots
        !            29: 1.00 1.00
        !            30: 2.00 1.42
        !            31: 3.00 1.73
        !            32: 4.00 2.00
        !            33: You really shouldn't be
        !            34: printing all of this file -
        !            35: did you forget that '$' is
        !            36: the address of the last
        !            37: line of a file?
        !            38: Use that instead of printing everything.
        !            39: 5.00 2.23
        !            40: 6.00 2.45
        !            41: 7.00 2.65
        !            42: 8.00 2,83
        !            43: #user
        !            44: #cmp data Ref
        !            45: #log
        !            46: #next
        !            47: 36.2d 5

unix.superglobalmegacorp.com

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