Annotation of 42BSD/usr.lib/learn/morefiles/L2.1a, revision 1.1

1.1     ! root        1: #print
        !             2: Most of the programs we have studied so far produce their
        !             3: output on the terminal -- examples are "ls", "spell", "grep",
        !             4: "date", "who", and so on.  (Of course, some do not, like
        !             5: "mv", "cp", and "rm".)  In any case, it is sometimes useful
        !             6: to be able to capture the output of a program in a file,
        !             7: so it can be used in some later processing.  This is very easy.
        !             8: For example, to get the current date and time in a file called
        !             9: "now", you need only type
        !            10: 
        !            11:    date >now
        !            12: 
        !            13: The symbol ">" tells the command interpreter that output
        !            14: is to go into the file whose name follows.  If the file already
        !            15: exists, its old contents will be clobbered, so use discretion.
        !            16: 
        !            17: Your task is to make a list of the files in this directory
        !            18: in the file "foo".
        !            19: When you have finished, type "ready".
        !            20: #create X1
        !            21: #create junk
        !            22: #create glop
        !            23: #create junk1
        !            24: asdfadfaf
        !            25: #create junk2
        !            26: qerqerqrq
        !            27: #user
        !            28: ls >X1
        !            29: #cmp X1 foo
        !            30: #log
        !            31: #next
        !            32: 2.1b 10

unix.superglobalmegacorp.com

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