Annotation of 42BSD/usr.lib/learn/morefiles/L5.1c, revision 1.1

1.1     ! root        1: #print
        !             2: Another use for pipes is to replace a command sequence that we
        !             3: did earlier with "cat", "pr" and a temporary file.  If you have
        !             4: a bunch of small files, using "pr" on them directly wastes
        !             5: paper, since each file takes a page.  You could say
        !             6:   cat memo* >temp
        !             7:   pr temp
        !             8:   rm temp
        !             9: but this is a nuisance (and the output will
        !            10: have the title "temp" on each page).  So use
        !            11: a pipe instead.
        !            12: In this directory there are some files whose
        !            13: names begin with "word".  Use "cat", "pr" and a pipe
        !            14: to print them, then type "ready".
        !            15: #create word1
        !            16: now
        !            17: is
        !            18: the
        !            19: time
        !            20: for
        !            21: all
        !            22: #create word2
        !            23: good
        !            24: men
        !            25: to
        !            26: come
        !            27: to
        !            28: the
        !            29: aid
        !            30: #create word3
        !            31: of
        !            32: their
        !            33: party.
        !            34: #copyin
        !            35: #user
        !            36: #uncopyin
        !            37: grep 'cat word.*| *pr' <.copy >/dev/null
        !            38: #log
        !            39: #next
        !            40: 5.1d 10

unix.superglobalmegacorp.com

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