Annotation of 42BSD/usr.lib/learn/editor/L30.2c, revision 1.1

1.1     ! root        1: #print
        !             2: As with other commands, you can specify a line number
        !             3: with the 's' command.  Thus
        !             4:   3s/x/a/
        !             5: will change the first 'x' on line 3 to an 'a'.  Here is
        !             6: a file "street" in which the fifth line has an 'r'
        !             7: where it should have an 'a'.  Try
        !             8: the sequence
        !             9: 
        !            10: ex street
        !            11: 5s/r/a/
        !            12: 5p
        !            13: wq
        !            14: ready
        !            15: #create Ref
        !            16: first avenue
        !            17: second avenue
        !            18: third avenue
        !            19: lexington avenue
        !            20: park avenue
        !            21: madison avenue
        !            22: #create street
        !            23: first avenue
        !            24: second avenue
        !            25: third avenue
        !            26: lexington avenue
        !            27: prrk avenue
        !            28: madison avenue
        !            29: #user
        !            30: #cmp street Ref
        !            31: #log
        !            32: #next
        !            33: 30.2d 5

unix.superglobalmegacorp.com

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