Annotation of 43BSD/usr.lib/learn/editor/L50.1c, revision 1.1

1.1     ! root        1: #print
        !             2: You can use other commands than 'p' with these
        !             3: context search addresses, of course.  For example,
        !             4:  /abc.e/s/ab/xx/p
        !             5: will
        !             6:  (1) search for the next line containing the
        !             7:      expression "abc.e", which matches any line that
        !             8:      has an 'a', then a 'b', then a 'c', then
        !             9:      anything, then an 'e' (so that it matches
        !            10:      "abcde", "abcxe", "abc9e", but not "abceq");
        !            11:  (2) on that line, change the first "ab" to an "xx".
        !            12: Edit file 'county'; find the line with 'pacific' on it
        !            13: and change it to 'ocean'.  Then rewrite the file
        !            14: and type "ready".
        !            15: #create Ref
        !            16: passaic
        !            17: bergen
        !            18: sussex
        !            19: hudson
        !            20: essex
        !            21: warren
        !            22: morris
        !            23: hunderdon
        !            24: somerset
        !            25: union
        !            26: ocean
        !            27: monmouth
        !            28: middlesex
        !            29: mercer
        !            30: cumberland
        !            31: cape may
        !            32: #create county
        !            33: passaic
        !            34: bergen
        !            35: sussex
        !            36: hudson
        !            37: essex
        !            38: warren
        !            39: morris
        !            40: hunderdon
        !            41: somerset
        !            42: union
        !            43: pacific
        !            44: monmouth
        !            45: middlesex
        !            46: mercer
        !            47: cumberland
        !            48: cape may
        !            49: #user
        !            50: #cmp county Ref
        !            51: #log
        !            52: #next
        !            53: 51.1a 10
        !            54: 50.2e 5

unix.superglobalmegacorp.com

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