Annotation of 43BSD/usr.lib/learn/files/L13.1g, revision 1.1

1.1     ! root        1: #print
        !             2: Suppose that we really do want to interchange the contents
        !             3: of the files "dick" and "jane". One way to do it is
        !             4: to move the contents of "dick" into some temporary file,
        !             5: then move "jane" onto "dick" (which of course clobbers
        !             6: the old contents of "dick", but we saved them already),
        !             7: then finally to move the temporary copy of "dick" to
        !             8: "jane". There are two files named "dick" and "jane" in this
        !             9: directory. Interchange their contents, then type "ready".
        !            10: #create Ref
        !            11: short file for dick
        !            12: #create dick
        !            13: short file for dick
        !            14: #create jane
        !            15: another file for jane
        !            16: #create Ref1
        !            17: another file for jane
        !            18: #user
        !            19: cmp -s jane Ref || cmp -s dick Ref1
        !            20: #log

unix.superglobalmegacorp.com

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