Annotation of 43BSD/usr.lib/learn/morefiles/L4.1c, revision 1.1

1.1     ! root        1: #print
        !             2: There are two files called "story1" and "story2" in
        !             3: this directory.  Collect the outputs of
        !             4:   grep the story[12]
        !             5: and
        !             6:   cat story[12] >temp
        !             7:   grep the <temp
        !             8: on two files called "the1" and "the2".  Then
        !             9: run "diff" on "the1" and "the2", and
        !            10: collect the differences on a file called "difference".
        !            11: Type "ready" when you have finished all of this.
        !            12: #create story1
        !            13:    Some animals have six feet.  These animals are insects.
        !            14: Insects are little animals.  Insects creep with their six feet.
        !            15: Many insects have wings, too.
        !            16:    Ants are insects.  Many ants live together.  They live in ant
        !            17: hills.  Many ants travel together.  Ants creep on their six feet.
        !            18: Ants creep fast.  They creep around on the ground.  They creep in
        !            19: and out of ant hills.  They creep up and down plants.  They creep
        !            20: into houses.
        !            21:    Some ants have wings.  They do not have wings all the time.
        !            22: They grow wings to fly away.  They fly away to find new homes.
        !            23: Then they lose their wings.
        !            24: #create story2
        !            25:    "Will there be baby robins soon?" asked Bill.  "We will see,"
        !            26: said Miss Fox.  Joan said, "we have looked and looked.  I think
        !            27: there will be no baby birds."  Barbara said, "It takes many days.
        !            28: The eggs need to be warm all the time.  The mother bird warms them."
        !            29: Bill said, "The father bird helps, too."  Joan said, "I guess I did
        !            30: not think.  There may be baby birds after all."
        !            31:    One day Carl called, "Come and look.  I see four baby birds in
        !            32: the nest."  All the children ran to look.  "But they are not pretty,"  
        !            33: Joan said.  Bill said, "Joan is right."
        !            34: #user
        !            35: cat story[12] >X1
        !            36: grep the <X1 >X2
        !            37: grep the story[12] >X1
        !            38: diff X1 X2 >X3
        !            39: #cmp X3 difference
        !            40: #log
        !            41: #next
        !            42: 4.1d 10

unix.superglobalmegacorp.com

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