Annotation of 43BSD/usr.lib/learn/editor/L11.2a, revision 1.1

1.1     ! root        1: #print
        !             2: So far I have always put you into the editor.
        !             3: How do you get there yourself?  The main command
        !             4: interpreter (the shell) recognizes
        !             5:   ex
        !             6: as the name of the editor.
        !             7: You can also say
        !             8:   ex file1
        !             9: which puts you in the editor with the current file
        !            10: "file1".  So, for example, you can print the
        !            11: last line of a file with
        !            12:   ex NAME
        !            13:   $p
        !            14:   w
        !            15:   q
        !            16: where NAME is the name of the file.
        !            17: 
        !            18: In this directory is a file named "file45".  Print the
        !            19: last line of it, and then exit as above.
        !            20: #create Ref
        !            21: :this line, the last line.
        !            22: #create file45
        !            23: This file contains nothing
        !            24: of great importance and
        !            25: you should not be printing
        !            26: these lines because the only
        !            27: line that you were asked for
        !            28: was
        !            29: this line, the last line.
        !            30: #copyout
        !            31: #user
        !            32: #uncopyout
        !            33: grep last .ocopy >X1
        !            34: #cmp X1 Ref
        !            35: #log
        !            36: #next
        !            37: 11.2b 10
        !            38: 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.