Annotation of 43BSD/usr.lib/learn/files/L12.1a, revision 1.1

1.1     ! root        1: #print
        !             2: Another very useful command is the command
        !             3:  diff x y
        !             4: which compares two files.  It will not print
        !             5: any output if the two files are the same, but
        !             6: if the files are different it will print
        !             7: out the lines that are changed in the two files,
        !             8: indicating the lines from the first file (x) by a leading "<"
        !             9: and the lines from the second file (y) by a leading ">".
        !            10: There are two files in this directory named "old" and "new".
        !            11: Why don't you first print both files, and then
        !            12: try using "diff" to compare them?  Suppose the files
        !            13: were hundreds of lines long, and you needed to know
        !            14: the single difference - do you see how valuable "diff" can be?
        !            15: As evidence that you did at least half of this,
        !            16: type "answer word" where "word" is the word added to the
        !            17: second file.
        !            18: #create new
        !            19: Four score and seven
        !            20: years ago our fathers
        !            21: brought forth on this
        !            22: continent a new nation,
        !            23: conceived in liberty
        !            24: and dedicated to the 
        !            25: proposition that all
        !            26: men are created equal.
        !            27: #create old
        !            28: Four score and seven
        !            29: years ago our fathers
        !            30: brought forth on this
        !            31: continent a new nation,
        !            32: conceived in liberty
        !            33: and dedicated the 
        !            34: proposition that all
        !            35: men are created equal.
        !            36: #copyin
        !            37: #user
        !            38: #uncopyin
        !            39: #match to
        !            40: #log
        !            41: #next
        !            42: 13.01a

unix.superglobalmegacorp.com

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