Annotation of 42BSD/usr.lib/learn/editor/L11.1a, revision 1.1

1.1     ! root        1: #print
        !             2: By now you are probably wondering how you
        !             3: get into the editor if someone else doesn't put
        !             4: you there.  The main command interpreter (the shell)
        !             5: recognizes
        !             6:   ex
        !             7: as the name of the editor.
        !             8: You can give a file name,
        !             9: which becomes the current file.  Thus
        !            10:   ex NAME
        !            11: in response to '%' puts you in the editor with
        !            12: current file as specified by NAME.
        !            13: So you can print a file with the sequence
        !            14:   ex file
        !            15:   1,$p
        !            16:   w
        !            17:   q
        !            18: All right.  There is a file in the current
        !            19: directory named for a New Jersey city.  Print
        !            20: it with "cat" and then with the editor.
        !            21: Then type "ready".
        !            22: #create Ref
        !            23: :2 cups sifted all-purpose flour
        !            24: 1 tablespoon double-acting baking powder
        !            25: 1/2 teaspoon salt
        !            26: 1/4 cup butter
        !            27: 3/4 cup milk
        !            28: :"trenton" 5 lines, 119 characters
        !            29: :% #
        !            30: #create trenton
        !            31: 2 cups sifted all-purpose flour
        !            32: 1 tablespoon double-acting baking powder
        !            33: 1/2 teaspoon salt
        !            34: 1/4 cup butter
        !            35: 3/4 cup milk
        !            36: #copyout
        !            37: #user
        !            38: #uncopyout
        !            39: tail -6 .ocopy >X1
        !            40: #cmp X1 Ref
        !            41: #log
        !            42: #next
        !            43: 12.1a 10
        !            44: 12.2a 5

unix.superglobalmegacorp.com

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