home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / net / mailmerge < prev    next >
SHell self-extracting ARchive  |  1987-04-02  |  8.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: SHell self-extracting ARchive (archive/shar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file Mailbox text, 1st line "From rs@mirror.TMC.COM Thu Apr 2 14:23:42 1987" default
99% file C source, ASCII text default
100% TrID E-Mail message (Var. 2) default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime application/mbox default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 72 73 40 | 6d 69 72 72 6f 72 2e 54 |From rs@|mirror.T|
|00000010| 4d 43 2e 43 4f 4d 20 54 | 68 75 20 41 70 72 20 20 |MC.COM T|hu Apr |
|00000020| 32 20 31 34 3a 32 33 3a | 34 32 20 31 39 38 37 0a |2 14:23:|42 1987.|
|00000030| 50 61 74 68 3a 20 73 65 | 69 73 6d 6f 21 72 75 74 |Path: se|ismo!rut|
|00000040| 67 65 72 73 21 70 79 72 | 6e 6a 21 6d 69 72 72 6f |gers!pyr|nj!mirro|
|00000050| 72 21 72 73 0a 46 72 6f | 6d 3a 20 72 73 40 6d 69 |r!rs.Fro|m: rs@mi|
|00000060| 72 72 6f 72 2e 54 4d 43 | 2e 43 4f 4d 20 28 52 69 |rror.TMC|.COM (Ri|
|00000070| 63 68 20 53 61 6c 7a 29 | 0a 4e 65 77 73 67 72 6f |ch Salz)|.Newsgro|
|00000080| 75 70 73 3a 20 6e 65 74 | 2e 73 6f 75 72 63 65 73 |ups: net|.sources|
|00000090| 2c 63 6f 6d 70 2e 74 65 | 78 74 0a 53 75 62 6a 65 |,comp.te|xt.Subje|
|000000a0| 63 74 3a 20 51 75 69 63 | 6b 79 20 22 6d 61 69 6c |ct: Quic|ky "mail|
|000000b0| 2d 6d 65 72 67 65 22 20 | 70 72 6f 67 72 61 6d 0a |-merge" |program.|
|000000c0| 4d 65 73 73 61 67 65 2d | 49 44 3a 20 3c 32 37 36 |Message-|ID: <276|
|000000d0| 33 40 6d 69 72 72 6f 72 | 2e 54 4d 43 2e 43 4f 4d |3@mirror|.TMC.COM|
|000000e0| 3e 0a 44 61 74 65 3a 20 | 32 20 41 70 72 20 38 37 |>.Date: |2 Apr 87|
|000000f0| 20 31 39 3a 32 33 3a 34 | 32 20 47 4d 54 0a 4f 72 | 19:23:4|2 GMT.Or|
|00000100| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 4d 69 72 72 |ganizati|on: Mirr|
|00000110| 6f 72 20 53 79 73 74 65 | 6d 73 2c 20 43 61 6d 62 |or Syste|ms, Camb|
|00000120| 72 69 64 67 65 20 4d 41 | 0a 4c 69 6e 65 73 3a 20 |ridge MA|.Lines: |
|00000130| 33 37 33 0a 0a 57 65 20 | 6e 65 65 64 65 64 20 74 |373..We |needed t|
|00000140| 6f 20 67 65 6e 65 72 61 | 74 65 20 61 20 77 68 6f |o genera|te a who|
|00000150| 6c 65 20 62 75 6e 63 68 | 20 6f 66 20 66 6f 72 6d |le bunch| of form|
|00000160| 20 6c 65 74 74 65 72 73 | 2c 20 61 6e 64 20 69 74 | letters|, and it|
|00000170| 20 77 61 73 20 71 75 69 | 63 6b 65 72 0a 61 6e 64 | was qui|cker.and|
|00000180| 20 65 61 73 69 65 72 20 | 74 6f 20 74 68 72 6f 77 | easier |to throw|
|00000190| 20 74 6f 67 65 74 68 65 | 72 20 68 69 73 20 67 65 | togethe|r his ge|
|000001a0| 6e 65 72 61 6c 20 73 6f | 6c 75 74 69 6f 6e 2c 20 |neral so|lution, |
|000001b0| 74 68 61 6e 20 66 6f 72 | 20 6d 65 20 74 6f 20 77 |than for| me to w|
|000001c0| 72 69 74 65 0a 61 20 67 | 65 6e 65 72 61 6c 2d 70 |rite.a g|eneral-p|
|000001d0| 75 72 70 6f 73 65 20 74 | 72 6f 66 66 20 2e 72 64 |urpose t|roff .rd|
|000001e0| 20 6d 61 63 72 6f 2d 63 | 61 6c 6c 65 72 2e 20 20 | macro-c|aller. |
|000001f0| 42 65 73 69 64 65 73 2c | 20 73 6f 6d 65 74 69 6d |Besides,| sometim|
|00000200| 65 73 20 77 65 20 6a 75 | 73 74 0a 71 75 69 63 6b |es we ju|st.quick|
|00000210| 20 73 6f 6d 65 74 68 69 | 6e 67 20 73 74 72 61 69 | somethi|ng strai|
|00000220| 67 68 74 20 74 6f 20 74 | 68 65 20 6c 69 6e 65 70 |ght to t|he linep|
|00000230| 72 69 6e 74 65 72 2e 0a | 0a 59 6f 75 20 73 68 6f |rinter..|.You sho|
|00000240| 75 6c 64 20 62 65 20 61 | 62 6c 65 20 74 6f 20 73 |uld be a|ble to s|
|00000250| 70 65 63 69 66 79 20 74 | 68 65 20 6e 75 6d 62 65 |pecify t|he numbe|
|00000260| 72 20 6f 66 20 6c 69 6e | 65 73 20 70 65 72 20 66 |r of lin|es per f|
|00000270| 69 65 6c 64 20 6f 6e 20 | 74 68 65 20 63 6f 6d 6d |ield on |the comm|
|00000280| 61 6e 64 0a 6c 69 6e 65 | 2c 20 49 20 73 75 70 70 |and.line|, I supp|
|00000290| 6f 73 65 2e 2e 2e 0a 09 | 2f 72 24 0a 0a 23 21 20 |ose.....|/r$..#! |
|000002a0| 2f 62 69 6e 2f 73 68 0a | 23 20 54 68 69 73 20 69 |/bin/sh.|# This i|
|000002b0| 73 20 61 20 73 68 65 6c | 6c 20 61 72 63 68 69 76 |s a shel|l archiv|
|000002c0| 65 2e 20 20 52 65 6d 6f | 76 65 20 61 6e 79 74 68 |e. Remo|ve anyth|
|000002d0| 69 6e 67 20 62 65 66 6f | 72 65 20 74 68 69 73 20 |ing befo|re this |
|000002e0| 6c 69 6e 65 2c 0a 23 20 | 74 68 65 6e 20 75 6e 70 |line,.# |then unp|
|000002f0| 61 63 6b 20 69 74 20 62 | 79 20 73 61 76 69 6e 67 |ack it b|y saving|
|00000300| 20 69 74 20 69 6e 20 61 | 20 66 69 6c 65 20 61 6e | it in a| file an|
|00000310| 64 20 74 79 70 69 6e 67 | 20 22 73 68 20 66 69 6c |d typing| "sh fil|
|00000320| 65 22 2e 0a 23 20 49 66 | 20 74 68 69 73 20 61 72 |e"..# If| this ar|
|00000330| 63 68 69 76 65 20 69 73 | 20 63 6f 6d 70 6c 65 74 |chive is| complet|
|00000340| 65 2c 20 79 6f 75 20 77 | 69 6c 6c 20 73 65 65 20 |e, you w|ill see |
|00000350| 74 68 65 20 6d 65 73 73 | 61 67 65 3a 0a 23 09 09 |the mess|age:.#..|
|00000360| 22 45 6e 64 20 6f 66 20 | 73 68 65 6c 6c 20 61 72 |"End of |shell ar|
|00000370| 63 68 69 76 65 2e 22 0a | 23 20 43 6f 6e 74 65 6e |chive.".|# Conten|
|00000380| 74 73 3a 20 20 6d 6d 65 | 72 67 65 2e 31 20 6d 6d |ts: mme|rge.1 mm|
|00000390| 65 72 67 65 2e 6c 20 4d | 61 6b 65 66 69 6c 65 20 |erge.l M|akefile |
|000003a0| 54 65 73 74 2e 6c 69 73 | 74 20 54 65 73 74 2e 74 |Test.lis|t Test.t|
|000003b0| 65 6d 70 6c 61 74 65 0a | 23 20 57 72 61 70 70 65 |emplate.|# Wrappe|
|000003c0| 64 20 62 79 20 72 73 40 | 6d 69 72 72 6f 72 20 6f |d by rs@|mirror o|
|000003d0| 6e 20 54 68 75 20 41 70 | 72 20 20 32 20 31 34 3a |n Thu Ap|r 2 14:|
|000003e0| 31 39 3a 32 38 20 31 39 | 38 37 0a 50 41 54 48 3d |19:28 19|87.PATH=|
|000003f0| 2f 62 69 6e 3a 2f 75 73 | 72 2f 62 69 6e 3a 2f 75 |/bin:/us|r/bin:/u|
|00000400| 73 72 2f 75 63 62 20 3b | 20 65 78 70 6f 72 74 20 |sr/ucb ;| export |
|00000410| 50 41 54 48 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |PATH.ech|o shar: |
|00000420| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 6d 6d 65 |Extracti|ng \"mme|
|00000430| 72 67 65 2e 31 5c 22 20 | 5c 28 32 34 35 36 20 63 |rge.1\" |\(2456 c|
|00000440| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 69 66 20 74 |haracter|s\).if t|
|00000450| 65 73 74 20 2d 66 20 6d | 6d 65 72 67 65 2e 31 20 |est -f m|merge.1 |
|00000460| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00000470| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 6f 76 |har: Wil|l not ov|
|00000480| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|00000490| 67 20 66 69 6c 65 20 5c | 22 6d 6d 65 72 67 65 2e |g file \|"mmerge.|
|000004a0| 31 5c 22 0a 65 6c 73 65 | 0a 73 65 64 20 22 73 2f |1\".else|.sed "s/|
|000004b0| 5e 58 2f 2f 22 20 3e 6d | 6d 65 72 67 65 2e 31 20 |^X//" >m|merge.1 |
|000004c0| 3c 3c 27 45 4e 44 5f 4f | 46 5f 6d 6d 65 72 67 65 |<<'END_O|F_mmerge|
|000004d0| 2e 31 27 0a 58 2e 54 48 | 20 4d 4d 45 52 47 45 20 |.1'.X.TH| MMERGE |
|000004e0| 31 20 4c 4f 43 41 4c 0a | 58 5c 22 20 24 48 65 61 |1 LOCAL.|X\" $Hea|
|000004f0| 64 65 72 3a 24 0a 58 2e | 53 48 20 4e 41 4d 45 0a |der:$.X.|SH NAME.|
|00000500| 58 6d 6d 65 72 67 65 20 | 5c 2d 20 60 60 71 75 69 |Xmmerge |\- ``qui|
|00000510| 63 6b 20 61 6e 64 20 64 | 69 72 74 79 27 27 20 6d |ck and d|irty'' m|
|00000520| 61 69 6c 2d 6d 65 72 67 | 65 20 70 72 6f 67 72 61 |ail-merg|e progra|
|00000530| 6d 2e 0a 58 2e 53 48 20 | 53 59 4e 4f 50 53 49 53 |m..X.SH |SYNOPSIS|
|00000540| 0a 58 2e 42 20 6d 6d 65 | 72 67 65 0a 58 74 65 6d |.X.B mme|rge.Xtem|
|00000550| 70 6c 61 74 65 5f 66 69 | 6c 65 20 6c 69 73 74 5f |plate_fi|le list_|
|00000560| 66 69 6c 65 0a 58 2e 53 | 48 20 44 45 53 43 52 49 |file.X.S|H DESCRI|
|00000570| 50 54 49 4f 4e 0a 58 2e | 49 20 4d 6d 65 72 67 65 |PTION.X.|I Mmerge|
|00000580| 0a 58 69 73 20 61 20 73 | 68 6f 72 74 20 6c 69 74 |.Xis a s|hort lit|
|00000590| 74 6c 65 20 70 72 6f 67 | 72 61 6d 20 64 65 73 69 |tle prog|ram desi|
|000005a0| 67 6e 65 64 20 74 6f 20 | 68 65 6c 70 20 67 65 6e |gned to |help gen|
|000005b0| 65 72 61 74 65 20 66 6f | 72 6d 20 6c 65 74 74 65 |erate fo|rm lette|
|000005c0| 72 73 20 61 6e 64 0a 58 | 74 68 65 20 6c 69 6b 65 |rs and.X|the like|
|000005d0| 2e 0a 58 49 74 20 73 68 | 6f 75 6c 64 20 62 65 20 |..XIt sh|ould be |
|000005e0| 67 69 76 65 6e 20 74 77 | 6f 20 61 72 67 75 6d 65 |given tw|o argume|
|000005f0| 6e 74 73 3a 20 20 74 68 | 65 20 6e 61 6d 65 20 6f |nts: th|e name o|
|00000600| 66 20 74 68 65 20 74 65 | 6d 70 6c 61 74 65 20 66 |f the te|mplate f|
|00000610| 69 6c 65 2c 20 61 6e 64 | 0a 58 74 68 65 20 6e 61 |ile, and|.Xthe na|
|00000620| 6d 65 20 6f 66 20 74 68 | 65 20 6c 69 73 74 20 66 |me of th|e list f|
|00000630| 69 6c 65 2e 0a 58 49 66 | 20 65 69 74 68 65 72 20 |ile..XIf| either |
|00000640| 6e 61 6d 65 20 69 73 20 | 61 20 64 61 73 68 2c 0a |name is |a dash,.|
|00000650| 58 2e 42 52 20 5c 2d 20 | 2c 0a 58 73 74 61 6e 64 |X.BR \- |,.Xstand|
|00000660| 61 72 64 20 69 6e 70 75 | 74 20 69 73 20 75 73 65 |ard inpu|t is use|
|00000670| 64 2e 0a 58 4f 75 74 70 | 75 74 20 69 73 20 73 65 |d..XOutp|ut is se|
|00000680| 6e 74 20 74 6f 20 73 74 | 61 6e 64 61 72 64 20 6f |nt to st|andard o|
|00000690| 75 74 70 75 74 2c 20 70 | 72 65 73 75 6d 61 62 6c |utput, p|resumabl|
|000006a0| 79 20 74 6f 20 62 65 20 | 70 69 70 65 64 20 69 6e |y to be |piped in|
|000006b0| 74 6f 0a 58 2e 49 52 20 | 6c 70 72 20 28 31 29 0a |to.X.IR |lpr (1).|
|000006c0| 58 6f 72 0a 58 2e 49 52 | 20 70 74 72 6f 66 66 20 |Xor.X.IR| ptroff |
|000006d0| 28 31 29 2e 0a 58 2e 50 | 50 0a 58 54 68 65 20 74 |(1)..X.P|P.XThe t|
|000006e0| 65 6d 70 6c 61 74 65 20 | 66 69 6c 65 20 69 73 20 |emplate |file is |
|000006f0| 61 20 6e 6f 72 6d 61 6c | 20 74 65 78 74 20 66 69 |a normal| text fi|
|00000700| 6c 65 2c 20 74 68 61 74 | 20 63 6f 6e 74 61 69 6e |le, that| contain|
|00000710| 73 20 73 70 65 63 69 61 | 6c 20 60 60 6d 61 72 6b |s specia|l ``mark|
|00000720| 65 72 73 27 27 0a 58 69 | 6e 64 69 63 61 74 69 6e |ers''.Xi|ndicatin|
|00000730| 67 20 77 68 65 72 65 20 | 79 6f 75 20 77 61 6e 74 |g where |you want|
|00000740| 20 74 68 65 20 69 6e 70 | 75 74 20 66 72 6f 6d 20 | the inp|ut from |
|00000750| 74 68 65 20 61 64 64 72 | 65 73 73 20 6c 69 73 74 |the addr|ess list|
|00000760| 20 74 6f 20 61 70 70 65 | 61 72 2e 0a 58 46 6f 72 | to appe|ar..XFor|
|00000770| 20 65 78 61 6d 70 6c 65 | 3a 0a 58 2e 52 53 0a 58 | example|:.X.RS.X|
|00000780| 2e 6e 66 0a 58 5c 26 5e | 4c 0a 58 24 24 31 24 0a |.nf.X\&^|L.X$$1$.|
|00000790| 58 24 24 33 24 2c 20 24 | 24 34 24 0a 58 41 70 72 |X$$3$, $|$4$.XApr|
|000007a0| 69 6c 20 31 2c 20 31 39 | 38 36 0a 58 0a 58 44 65 |il 1, 19|86.X.XDe|
|000007b0| 61 72 20 24 24 31 24 3a | 0a 58 0a 58 59 6f 75 20 |ar $$1$:|.X.XYou |
|000007c0| 6d 61 79 20 61 6c 72 65 | 61 64 79 20 62 65 20 61 |may alre|ady be a|
|000007d0| 20 77 69 6e 6e 65 72 21 | 20 20 54 68 61 74 27 73 | winner!| That's|
|000007e0| 20 72 69 67 68 74 2c 20 | 24 24 32 24 2c 20 79 6f | right, |$$2$, yo|
|000007f0| 75 20 63 6f 75 6c 64 20 | 62 65 0a 58 74 68 65 20 |u could |be.Xthe |
|00000800| 66 69 72 73 74 20 69 6e | 20 74 68 65 20 74 6f 77 |first in| the tow|
|00000810| 6e 20 6f 66 20 24 24 33 | 24 2c 20 24 24 34 24 2c |n of $$3|$, $$4$,|
|00000820| 20 74 6f 20 77 69 6e 20 | 24 31 30 30 30 2e 0a 58 | to win |$1000..X|
|00000830| 09 2e 0a 58 2e 73 70 20 | 2d 2e 35 0a 58 09 2e 0a |...X.sp |-.5.X...|
|00000840| 58 2e 73 70 20 2d 2e 35 | 0a 58 09 2e 0a 58 09 53 |X.sp -.5|.X...X.S|
|00000850| 69 6e 63 65 72 65 6c 79 | 2c 0a 58 0a 58 09 45 64 |incerely|,.X.X.Ed|
|00000860| 20 4d 63 4d 61 68 6f 6e | 0a 58 2e 66 69 0a 58 2e | McMahon|.X.fi.X.|
|00000870| 52 45 0a 58 28 59 6f 75 | 20 77 6f 75 6c 64 20 70 |RE.X(You| would p|
|00000880| 72 6f 62 61 62 6c 79 20 | 77 61 6e 74 20 74 6f 20 |robably |want to |
|00000890| 73 74 61 72 74 20 6f 72 | 20 65 6e 64 20 74 68 65 |start or| end the|
|000008a0| 20 74 65 6d 70 6c 61 74 | 65 20 77 69 74 68 20 61 | templat|e with a|
|000008b0| 20 66 6f 72 6d 66 65 65 | 64 20 69 66 0a 58 79 6f | formfee|d if.Xyo|
|000008c0| 75 20 61 72 65 20 73 65 | 6e 64 69 6e 67 20 79 6f |u are se|nding yo|
|000008d0| 75 72 20 6f 75 74 70 75 | 74 20 74 6f 20 61 20 6c |ur outpu|t to a l|
|000008e0| 69 6e 65 70 72 69 6e 74 | 65 72 2c 20 68 65 6e 63 |ineprint|er, henc|
|000008f0| 65 20 74 68 65 20 60 60 | 5e 4c 27 27 20 61 73 20 |e the ``|^L'' as |
|00000900| 74 68 65 0a 58 66 69 72 | 73 74 20 6c 69 6e 65 2e |the.Xfir|st line.|
|00000910| 29 0a 58 2e 50 50 0a 58 | 57 69 74 68 69 6e 20 74 |).X.PP.X|Within t|
|00000920| 68 65 20 74 65 6d 70 6c | 61 74 65 2c 20 74 68 65 |he templ|ate, the|
|00000930| 72 65 20 63 61 6e 20 62 | 65 20 61 6e 79 20 6e 75 |re can b|e any nu|
|00000940| 6d 62 65 72 20 6f 66 20 | 6d 61 72 6b 65 72 73 20 |mber of |markers |
|00000950| 6f 66 20 74 68 65 20 66 | 6f 72 6d 0a 58 2e 42 49 |of the f|orm.X.BI|
|00000960| 20 24 24 20 64 69 67 69 | 74 73 20 24 0a 58 6d 65 | $$ digi|ts $.Xme|
|00000970| 61 6e 69 6e 67 20 74 68 | 61 74 20 74 68 65 20 63 |aning th|at the c|
|00000980| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 66 69 65 6c 64 |ontents |of field|
|00000990| 20 6e 75 6d 62 65 72 0a | 58 2e 49 20 64 69 67 69 | number.|X.I digi|
|000009a0| 74 73 0a 58 66 72 6f 6d | 20 74 68 65 20 6c 69 73 |ts.Xfrom| the lis|
|000009b0| 74 20 66 69 6c 65 20 73 | 68 6f 75 6c 64 20 62 65 |t file s|hould be|
|000009c0| 20 69 6e 73 65 72 74 65 | 64 20 61 74 20 74 68 61 | inserte|d at tha|
|000009d0| 74 20 70 6f 69 6e 74 2e | 0a 58 2e 50 50 0a 58 43 |t point.|.X.PP.XC|
|000009e0| 6f 6e 74 69 6e 75 69 6e | 67 20 74 68 69 73 20 65 |ontinuin|g this e|
|000009f0| 78 61 6d 70 6c 65 2c 20 | 68 65 72 65 20 69 73 20 |xample, |here is |
|00000a00| 77 68 61 74 20 61 20 73 | 61 6d 70 6c 65 20 6c 69 |what a s|ample li|
|00000a10| 73 74 20 66 69 6c 65 20 | 6d 69 67 68 74 20 6c 6f |st file |might lo|
|00000a20| 6f 6b 0a 58 6c 69 6b 65 | 3a 0a 58 2e 52 53 0a 58 |ok.Xlike|:.X.RS.X|
|00000a30| 2e 6e 66 0a 58 4c 49 4e | 45 53 3a 20 34 0a 58 0a |.nf.XLIN|ES: 4.X.|
|00000a40| 58 52 69 63 68 61 72 64 | 20 53 61 6c 7a 0a 58 52 |XRichard| Salz.XR|
|00000a50| 69 63 68 0a 58 43 61 6d | 62 72 69 64 67 65 0a 58 |ich.XCam|bridge.X|
|00000a60| 4d 61 73 73 61 63 68 75 | 73 65 74 74 73 0a 58 0a |Massachu|setts.X.|
|00000a70| 58 4a 6f 68 6e 6e 79 20 | 43 61 72 73 6f 6e 0a 58 |XJohnny |Carson.X|
|00000a80| 4a 6f 6f 68 68 68 6e 79 | 21 0a 58 42 75 72 62 61 |Joohhhny|!.XBurba|
|00000a90| 6e 6b 0a 58 43 61 6c 69 | 66 6f 72 6e 69 61 0a 58 |nk.XCali|fornia.X|
|00000aa0| 0a 58 2e 66 69 0a 58 2e | 52 45 0a 58 54 68 65 20 |.X.fi.X.|RE.XThe |
|00000ab0| 66 69 72 73 74 20 6c 69 | 6e 65 20 6f 66 20 74 68 |first li|ne of th|
|00000ac0| 65 20 66 69 6c 65 20 63 | 6f 6e 74 61 69 6e 73 20 |e file c|ontains |
|00000ad0| 74 68 65 20 77 6f 72 64 | 0a 58 2e 49 20 4c 49 4e |the word|.X.I LIN|
|00000ae0| 45 53 0a 58 69 6e 20 61 | 6c 6c 20 63 61 70 69 74 |ES.Xin a|ll capit|
|00000af0| 61 6c 73 2c 20 66 6f 6c | 6c 6f 77 65 64 20 62 79 |als, fol|lowed by|
|00000b00| 20 61 20 63 6f 6c 6f 6e | 20 61 6e 64 20 73 70 61 | a colon| and spa|
|00000b10| 63 65 2c 20 74 68 65 6e | 20 74 68 65 20 6e 75 6d |ce, then| the num|
|00000b20| 62 65 72 20 6f 66 20 66 | 69 65 6c 64 73 0a 58 69 |ber of f|ields.Xi|
|00000b30| 6e 20 65 61 63 68 20 65 | 6e 74 72 79 2e 0a 58 54 |n each e|ntry..XT|
|00000b40| 68 65 20 73 65 63 6f 6e | 64 20 6c 69 6e 65 20 69 |he secon|d line i|
|00000b50| 73 20 62 6c 61 6e 6b 2e | 0a 58 54 68 65 6e 2c 20 |s blank.|.XThen, |
|00000b60| 65 61 63 68 20 72 65 63 | 6f 72 64 20 61 70 70 65 |each rec|ord appe|
|00000b70| 61 72 73 2c 20 73 65 70 | 61 72 61 74 65 64 20 62 |ars, sep|arated b|
|00000b80| 79 20 61 20 62 6c 61 6e | 6b 20 6c 69 6e 65 2e 0a |y a blan|k line..|
|00000b90| 58 28 4e 6f 74 65 20 74 | 68 61 74 20 74 68 65 20 |X(Note t|hat the |
|00000ba0| 66 69 6c 65 0a 58 2e 49 | 20 65 6e 64 73 0a 58 77 |file.X.I| ends.Xw|
|00000bb0| 69 74 68 20 61 20 62 6c | 61 6e 6b 20 6c 69 6e 65 |ith a bl|ank line|
|00000bc0| 2c 20 74 6f 6f 2e 29 0a | 58 2e 50 50 0a 58 46 69 |, too.).|X.PP.XFi|
|00000bd0| 6e 61 6c 6c 79 2c 20 69 | 66 20 74 68 65 20 74 65 |nally, i|f the te|
|00000be0| 6d 70 6c 61 74 65 20 66 | 69 6c 65 20 28 73 68 6f |mplate f|ile (sho|
|00000bf0| 77 6e 20 66 69 72 73 74 | 29 20 69 73 20 63 61 6c |wn first|) is cal|
|00000c00| 6c 65 64 0a 58 2e 49 52 | 20 74 65 6d 70 20 2c 0a |led.X.IR| temp ,.|
|00000c10| 58 61 6e 64 20 74 68 65 | 20 6c 69 73 74 20 66 69 |Xand the| list fi|
|00000c20| 6c 65 20 28 73 68 6f 77 | 6e 20 73 65 63 6f 6e 64 |le (show|n second|
|00000c30| 29 20 69 73 20 63 61 6c | 6c 65 64 0a 58 2e 49 52 |) is cal|led.X.IR|
|00000c40| 20 6c 69 73 74 20 2c 0a | 58 74 68 65 6e 20 74 79 | list ,.|Xthen ty|
|00000c50| 70 69 6e 67 3a 0a 58 2e | 52 53 0a 58 6d 6d 65 72 |ping:.X.|RS.Xmmer|
|00000c60| 67 65 20 74 65 6d 70 20 | 6c 69 73 74 20 7c 20 6c |ge temp |list | l|
|00000c70| 70 72 0a 58 2e 52 45 0a | 58 77 6f 75 6c 64 20 73 |pr.X.RE.|Xwould s|
|00000c80| 65 6e 64 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |end the |followin|
|00000c90| 67 20 74 6f 20 74 68 65 | 20 6c 69 6e 65 70 72 69 |g to the| linepri|
|00000ca0| 6e 74 65 72 3a 0a 58 2e | 52 53 0a 58 2e 6e 66 0a |nter:.X.|RS.X.nf.|
|00000cb0| 58 2e 49 20 22 28 6e 65 | 77 20 70 61 67 65 29 22 |X.I "(ne|w page)"|
|00000cc0| 0a 58 52 69 63 68 61 72 | 64 20 53 61 6c 7a 0a 58 |.XRichar|d Salz.X|
|00000cd0| 43 61 6d 62 72 69 64 67 | 65 2c 20 4d 61 73 73 61 |Cambridg|e, Massa|
|00000ce0| 63 68 75 73 65 74 74 73 | 0a 58 41 70 72 69 6c 20 |chusetts|.XApril |
|00000cf0| 31 2c 20 31 39 38 36 0a | 58 0a 58 44 65 61 72 20 |1, 1986.|X.XDear |
|00000d00| 52 69 63 68 61 72 64 20 | 53 61 6c 7a 3a 0a 58 0a |Richard |Salz:.X.|
|00000d10| 58 59 6f 75 20 6d 61 79 | 20 61 6c 72 65 61 64 79 |XYou may| already|
|00000d20| 20 62 65 20 61 20 77 69 | 6e 6e 65 72 21 20 20 54 | be a wi|nner! T|
|00000d30| 68 61 74 27 73 20 72 69 | 67 68 74 2c 20 52 69 63 |hat's ri|ght, Ric|
|00000d40| 68 2c 20 79 6f 75 20 63 | 6f 75 6c 64 20 62 65 0a |h, you c|ould be.|
|00000d50| 58 74 68 65 20 66 69 72 | 73 74 20 69 6e 20 74 68 |Xthe fir|st in th|
|00000d60| 65 20 74 6f 77 6e 20 6f | 66 20 43 61 6d 62 72 69 |e town o|f Cambri|
|00000d70| 64 67 65 2c 20 4d 61 73 | 73 61 63 68 75 73 65 74 |dge, Mas|sachuset|
|00000d80| 74 73 2c 20 74 6f 20 77 | 69 6e 20 24 31 30 30 30 |ts, to w|in $1000|
|00000d90| 2e 0a 58 09 2e 0a 58 2e | 73 70 20 2d 2e 35 0a 58 |..X...X.|sp -.5.X|
|00000da0| 09 2e 0a 58 2e 73 70 20 | 2d 2e 35 0a 58 09 2e 0a |...X.sp |-.5.X...|
|00000db0| 58 09 53 69 6e 63 65 72 | 65 6c 79 2c 0a 58 0a 58 |X.Sincer|ely,.X.X|
|00000dc0| 09 45 64 20 4d 63 4d 61 | 68 6f 6e 0a 58 2e 49 20 |.Ed McMa|hon.X.I |
|00000dd0| 22 28 6e 65 77 20 70 61 | 67 65 29 22 0a 58 4a 6f |"(new pa|ge)".XJo|
|00000de0| 68 6e 6e 79 20 43 61 72 | 73 6f 6e 0a 58 42 75 72 |hnny Car|son.XBur|
|00000df0| 62 61 6e 6b 2c 20 43 61 | 6c 69 66 6f 72 6e 69 61 |bank, Ca|lifornia|
|00000e00| 0a 58 41 70 72 69 6c 20 | 31 2c 20 31 39 38 36 0a |.XApril |1, 1986.|
|00000e10| 58 0a 58 44 65 61 72 20 | 4a 6f 68 6e 6e 79 20 43 |X.XDear |Johnny C|
|00000e20| 61 72 73 6f 6e 3a 0a 58 | 0a 58 59 6f 75 20 6d 61 |arson:.X|.XYou ma|
|00000e30| 79 20 61 6c 72 65 61 64 | 79 20 62 65 20 61 20 77 |y alread|y be a w|
|00000e40| 69 6e 6e 65 72 21 20 20 | 54 68 61 74 27 73 20 72 |inner! |That's r|
|00000e50| 69 67 68 74 2c 20 4a 6f | 6f 68 68 6e 79 21 2c 20 |ight, Jo|ohhny!, |
|00000e60| 79 6f 75 20 63 6f 75 6c | 64 20 62 65 0a 58 74 68 |you coul|d be.Xth|
|00000e70| 65 20 66 69 72 73 74 20 | 69 6e 20 74 68 65 20 74 |e first |in the t|
|00000e80| 6f 77 6e 20 6f 66 20 42 | 75 72 62 61 6e 6b 2c 20 |own of B|urbank, |
|00000e90| 43 61 6c 69 66 6f 72 6e | 69 61 2c 20 74 6f 20 77 |Californ|ia, to w|
|00000ea0| 69 6e 20 24 31 30 30 30 | 2e 0a 58 09 2e 0a 58 2e |in $1000|..X...X.|
|00000eb0| 73 70 20 2d 2e 35 0a 58 | 09 2e 0a 58 2e 73 70 20 |sp -.5.X|...X.sp |
|00000ec0| 2d 2e 35 0a 58 09 2e 0a | 58 09 53 69 6e 63 65 72 |-.5.X...|X.Sincer|
|00000ed0| 65 6c 79 2c 0a 58 0a 58 | 09 45 64 20 4d 63 4d 61 |ely,.X.X|.Ed McMa|
|00000ee0| 68 6f 6e 0a 58 2e 66 69 | 0a 58 2e 52 45 0a 45 4e |hon.X.fi|.X.RE.EN|
|00000ef0| 44 5f 4f 46 5f 6d 6d 65 | 72 67 65 2e 31 0a 69 66 |D_OF_mme|rge.1.if|
|00000f00| 20 74 65 73 74 20 32 34 | 35 36 20 2d 6e 65 20 60 | test 24|56 -ne `|
|00000f10| 77 63 20 2d 63 20 3c 6d | 6d 65 72 67 65 2e 31 60 |wc -c <m|merge.1`|
|00000f20| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00000f30| 73 68 61 72 3a 20 5c 22 | 6d 6d 65 72 67 65 2e 31 |shar: \"|mmerge.1|
|00000f40| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00000f50| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 66 69 0a | wrong s|ize!.fi.|
|00000f60| 23 20 65 6e 64 20 6f 66 | 20 6f 76 65 72 77 72 69 |# end of| overwri|
|00000f70| 74 69 6e 67 20 63 68 65 | 63 6b 0a 66 69 0a 65 63 |ting che|ck.fi.ec|
|00000f80| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00000f90| 69 6e 67 20 5c 22 6d 6d | 65 72 67 65 2e 6c 5c 22 |ing \"mm|erge.l\"|
|00000fa0| 20 5c 28 32 35 31 31 20 | 63 68 61 72 61 63 74 65 | \(2511 |characte|
|00000fb0| 72 73 5c 29 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |rs\).if |test -f |
|00000fc0| 6d 6d 65 72 67 65 2e 6c | 20 3b 20 74 68 65 6e 20 |mmerge.l| ; then |
|00000fd0| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00000fe0| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|00000ff0| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|00001000| 5c 22 6d 6d 65 72 67 65 | 2e 6c 5c 22 0a 65 6c 73 |\"mmerge|.l\".els|
|00001010| 65 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |e.sed "s|/^X//" >|
|00001020| 6d 6d 65 72 67 65 2e 6c | 20 3c 3c 27 45 4e 44 5f |mmerge.l| <<'END_|
|00001030| 4f 46 5f 6d 6d 65 72 67 | 65 2e 6c 27 0a 58 0a 58 |OF_mmerg|e.l'.X.X|
|00001040| 25 7b 0a 58 2f 2a 0a 58 | 2a 2a 20 20 4d 4d 45 52 |%{.X/*.X|** MMER|
|00001050| 47 45 0a 58 2a 2a 20 20 | 41 20 71 75 69 63 6b 20 |GE.X** |A quick |
|00001060| 61 6e 64 20 64 69 72 74 | 79 20 22 6d 61 69 6c 20 |and dirt|y "mail |
|00001070| 6d 65 72 67 65 22 20 70 | 72 6f 67 72 61 6d 2e 0a |merge" p|rogram..|
|00001080| 58 2a 2a 0a 58 2a 2a 20 | 20 53 6c 6f 70 70 79 20 |X**.X** | Sloppy |
|00001090| 70 72 6f 67 72 61 6d 6d | 69 6e 67 3a 20 20 77 65 |programm|ing: we|
|000010a0| 20 6c 65 74 20 65 78 69 | 74 28 29 20 63 6c 6f 73 | let exi|t() clos|
|000010b0| 65 20 61 6c 6c 20 6f 70 | 65 6e 20 66 69 6c 65 73 |e all op|en files|
|000010c0| 20 66 6f 72 20 75 73 2e | 0a 58 2a 2f 0a 58 0a 58 | for us.|.X*/.X.X|
|000010d0| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 69 6f 2e |#include| <stdio.|
|000010e0| 68 3e 0a 58 0a 58 23 69 | 66 6e 64 65 66 09 6c 69 |h>.X.X#i|fndef.li|
|000010f0| 6e 74 0a 58 73 74 61 74 | 69 63 20 63 68 61 72 09 |nt.Xstat|ic char.|
|00001100| 20 52 43 53 5b 5d 20 3d | 20 22 24 48 65 61 64 65 | RCS[] =| "$Heade|
|00001110| 72 3a 20 6d 6d 65 72 67 | 65 2e 63 2c 76 20 31 2e |r: mmerg|e.c,v 1.|
|00001120| 31 20 38 37 2f 30 34 2f | 30 32 20 31 30 3a 33 35 |1 87/04/|02 10:35|
|00001130| 3a 33 34 20 72 73 20 52 | 45 4c 20 24 22 3b 0a 58 |:34 rs R|EL $";.X|
|00001140| 23 65 6e 64 69 66 09 2f | 2a 20 6c 69 6e 74 20 2a |#endif./|* lint *|
|00001150| 2f 0a 58 0a 58 23 64 65 | 66 69 6e 65 20 4c 49 4e |/.X.X#de|fine LIN|
|00001160| 45 53 49 5a 45 09 39 39 | 0a 58 23 64 65 66 69 6e |ESIZE.99|.X#defin|
|00001170| 65 20 4d 41 52 4b 09 09 | 27 24 27 0a 58 23 64 65 |e MARK..|'$'.X#de|
|00001180| 66 69 6e 65 20 4e 49 4c | 09 09 28 63 68 61 72 20 |fine NIL|..(char |
|00001190| 2a 29 4e 55 4c 4c 0a 58 | 0a 58 73 74 61 74 69 63 |*)NULL.X|.Xstatic|
|000011a0| 20 69 6e 74 09 20 20 4c | 69 6e 65 73 3b 0a 58 73 | int. L|ines;.Xs|
|000011b0| 74 61 74 69 63 20 63 68 | 61 72 09 20 20 4c 49 4e |tatic ch|ar. LIN|
|000011c0| 45 53 5b 5d 20 3d 20 22 | 4c 49 4e 45 53 3a 20 22 |ES[] = "|LINES: "|
|000011d0| 3b 0a 58 73 74 61 74 69 | 63 20 63 68 61 72 09 2a |;.Xstati|c char.*|
|000011e0| 2a 54 65 78 74 3b 0a 58 | 0a 58 65 78 74 65 72 6e |*Text;.X|.Xextern|
|000011f0| 20 69 6e 74 09 20 65 72 | 72 6e 6f 3b 0a 58 65 78 | int. er|rno;.Xex|
|00001200| 74 65 72 6e 20 69 6e 74 | 09 20 73 79 73 5f 6e 65 |tern int|. sys_ne|
|00001210| 72 72 3b 0a 58 65 78 74 | 65 72 6e 20 63 68 61 72 |rr;.Xext|ern char|
|00001220| 09 2a 73 79 73 5f 65 72 | 72 6c 69 73 74 5b 5d 3b |.*sys_er|rlist[];|
|00001230| 0a 58 65 78 74 65 72 6e | 20 63 68 61 72 09 2a 63 |.Xextern| char.*c|
|00001240| 61 6c 6c 6f 63 28 29 3b | 0a 58 65 78 74 65 72 6e |alloc();|.Xextern|
|00001250| 20 63 68 61 72 09 2a 69 | 6e 64 65 78 28 29 3b 0a | char.*i|ndex();.|
|00001260| 58 0a 58 0a 58 73 74 61 | 74 69 63 20 76 6f 69 64 |X.X.Xsta|tic void|
|00001270| 0a 58 59 65 6c 70 28 61 | 2c 20 62 29 0a 58 20 20 |.XYelp(a|, b).X |
|00001280| 20 20 63 68 61 72 09 2a | 61 3b 0a 58 20 20 20 20 | char.*|a;.X |
|00001290| 63 68 61 72 09 2a 62 3b | 0a 58 7b 0a 58 20 20 20 |char.*b;|.X{.X |
|000012a0| 20 69 6e 74 09 09 20 65 | 3b 0a 58 0a 58 20 20 20 | int.. e|;.X.X |
|000012b0| 20 65 20 3d 20 65 72 72 | 6e 6f 3b 0a 58 20 20 20 | e = err|no;.X |
|000012c0| 20 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c | fprintf|(stderr,|
|000012d0| 20 22 6d 6d 65 72 67 65 | 3a 20 20 22 29 3b 0a 58 | "mmerge|: ");.X|
|000012e0| 20 20 20 20 66 70 72 69 | 6e 74 66 28 73 74 64 65 | fpri|ntf(stde|
|000012f0| 72 72 2c 20 61 2c 20 62 | 29 3b 0a 58 20 20 20 20 |rr, a, b|);.X |
|00001300| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|00001310| 22 20 28 65 72 72 6e 6f | 20 3d 20 25 64 2c 20 25 |" (errno| = %d, %|
|00001320| 73 29 2e 5c 6e 22 2c 0a | 58 09 20 20 20 20 65 2c |s).\n",.|X. e,|
|00001330| 20 65 20 3c 20 30 20 7c | 7c 20 65 20 3e 20 73 79 | e < 0 ||| e > sy|
|00001340| 73 5f 6e 65 72 72 20 3f | 20 22 6f 6f 70 73 22 20 |s_nerr ?| "oops" |
|00001350| 3a 20 73 79 73 5f 65 72 | 72 6c 69 73 74 5b 65 72 |: sys_er|rlist[er|
|00001360| 72 6e 6f 5d 29 3b 0a 58 | 20 20 20 20 65 78 69 74 |rno]);.X| exit|
|00001370| 28 31 29 3b 0a 58 7d 0a | 58 0a 58 0a 58 6d 61 69 |(1);.X}.|X.X.Xmai|
|00001380| 6e 28 61 63 2c 20 61 76 | 29 0a 58 20 20 20 20 69 |n(ac, av|).X i|
|00001390| 6e 74 09 09 09 20 20 61 | 63 3b 0a 58 20 20 20 20 |nt... a|c;.X |
|000013a0| 63 68 61 72 09 09 20 2a | 61 76 5b 5d 3b 0a 58 7b |char.. *|av[];.X{|
|000013b0| 0a 58 20 20 20 20 72 65 | 67 69 73 74 65 72 20 46 |.X re|gister F|
|000013c0| 49 4c 45 09 20 2a 49 6e | 70 75 74 3b 0a 58 20 20 |ILE. *In|put;.X |
|000013d0| 20 20 72 65 67 69 73 74 | 65 72 20 63 68 61 72 09 | regist|er char.|
|000013e0| 20 2a 70 3b 0a 58 20 20 | 20 20 72 65 67 69 73 74 | *p;.X | regist|
|000013f0| 65 72 20 69 6e 74 09 20 | 20 69 3b 0a 58 20 20 20 |er int. | i;.X |
|00001400| 20 63 68 61 72 09 09 20 | 20 62 75 66 66 5b 42 55 | char.. | buff[BU|
|00001410| 46 53 49 5a 5d 3b 0a 58 | 0a 58 20 20 20 20 2f 2a |FSIZ];.X|.X /*|
|00001420| 20 43 68 65 63 6b 20 75 | 73 61 67 65 2e 20 2a 2f | Check u|sage. */|
|00001430| 0a 58 20 20 20 20 69 66 | 20 28 61 63 20 21 3d 20 |.X if| (ac != |
|00001440| 33 29 0a 58 09 59 65 6c | 70 28 22 42 61 64 20 75 |3).X.Yel|p("Bad u|
|00001450| 73 61 67 65 22 2c 20 4e | 49 4c 29 3b 0a 58 0a 58 |sage", N|IL);.X.X|
|00001460| 20 20 20 20 2f 2a 20 4f | 70 65 6e 20 66 69 6c 65 | /* O|pen file|
|00001470| 73 2e 20 2a 2f 0a 58 20 | 20 20 20 69 66 20 28 28 |s. */.X | if ((|
|00001480| 79 79 69 6e 20 3d 20 73 | 74 72 63 6d 70 28 61 76 |yyin = s|trcmp(av|
|00001490| 5b 31 5d 2c 20 22 2d 22 | 29 20 3f 20 66 6f 70 65 |[1], "-"|) ? fope|
|000014a0| 6e 28 61 76 5b 31 5d 2c | 20 22 72 22 29 20 3a 20 |n(av[1],| "r") : |
|000014b0| 73 74 64 69 6e 29 20 3d | 3d 20 4e 55 4c 4c 29 0a |stdin) =|= NULL).|
|000014c0| 58 09 59 65 6c 70 28 22 | 43 61 6e 27 74 20 6f 70 |X.Yelp("|Can't op|
|000014d0| 65 6e 20 25 73 20 61 73 | 20 74 65 6d 70 6c 61 74 |en %s as| templat|
|000014e0| 65 20 66 69 6c 65 22 2c | 20 61 76 5b 31 5d 29 3b |e file",| av[1]);|
|000014f0| 0a 58 20 20 20 20 69 66 | 20 28 28 49 6e 70 75 74 |.X if| ((Input|
|00001500| 20 3d 20 73 74 72 63 6d | 70 28 61 76 5b 32 5d 2c | = strcm|p(av[2],|
|00001510| 20 22 2d 22 29 20 3f 20 | 66 6f 70 65 6e 28 61 76 | "-") ? |fopen(av|
|00001520| 5b 32 5d 2c 20 22 72 22 | 29 20 3a 20 73 74 64 69 |[2], "r"|) : stdi|
|00001530| 6e 29 20 3d 3d 20 4e 55 | 4c 4c 29 0a 58 09 59 65 |n) == NU|LL).X.Ye|
|00001540| 6c 70 28 22 43 61 6e 27 | 74 20 6f 70 65 6e 20 25 |lp("Can'|t open %|
|00001550| 73 20 61 73 20 69 6e 70 | 75 74 20 66 69 6c 65 22 |s as inp|ut file"|
|00001560| 2c 20 61 76 5b 32 5d 29 | 3b 0a 58 20 20 20 20 69 |, av[2])|;.X i|
|00001570| 66 20 28 79 79 69 6e 20 | 3d 3d 20 73 74 64 69 6e |f (yyin |== stdin|
|00001580| 20 26 26 20 49 6e 70 75 | 74 20 3d 3d 20 73 74 64 | && Inpu|t == std|
|00001590| 69 6e 29 0a 58 09 59 65 | 6c 70 28 22 42 6f 74 68 |in).X.Ye|lp("Both|
|000015a0| 20 66 69 6c 65 73 20 63 | 61 6e 27 74 20 62 65 20 | files c|an't be |
|000015b0| 66 72 6f 6d 20 73 74 61 | 6e 64 61 72 64 20 69 6e |from sta|ndard in|
|000015c0| 70 75 74 22 2c 20 4e 49 | 4c 29 3b 0a 58 0a 58 20 |put", NI|L);.X.X |
|000015d0| 20 20 20 2f 2a 20 46 69 | 72 73 74 20 6c 69 6e 65 | /* Fi|rst line|
|000015e0| 20 6f 66 20 49 6e 70 75 | 74 20 73 68 6f 75 6c 64 | of Inpu|t should|
|000015f0| 20 62 65 20 22 4c 49 4e | 45 53 3a 20 23 22 3b 20 | be "LIN|ES: #"; |
|00001600| 73 65 63 6f 6e 64 20 73 | 68 6f 75 6c 64 20 62 65 |second s|hould be|
|00001610| 20 62 6c 61 6e 6b 2e 20 | 2a 2f 0a 58 20 20 20 20 | blank. |*/.X |
|00001620| 69 66 20 28 66 67 65 74 | 73 28 62 75 66 66 2c 20 |if (fget|s(buff, |
|00001630| 73 69 7a 65 6f 66 20 62 | 75 66 66 2c 20 49 6e 70 |sizeof b|uff, Inp|
|00001640| 75 74 29 20 3d 3d 20 4e | 55 4c 4c 0a 58 20 20 20 |ut) == N|ULL.X |
|00001650| 20 20 7c 7c 20 73 74 72 | 6e 63 6d 70 28 62 75 66 | || str|ncmp(buf|
|00001660| 66 2c 20 4c 49 4e 45 53 | 2c 20 73 69 7a 65 6f 66 |f, LINES|, sizeof|
|00001670| 20 4c 49 4e 45 53 20 2d | 20 31 29 20 21 3d 20 30 | LINES -| 1) != 0|
|00001680| 0a 58 20 20 20 20 20 7c | 7c 20 28 4c 69 6e 65 73 |.X ||| (Lines|
|00001690| 20 3d 20 61 74 6f 69 28 | 62 75 66 66 20 2b 20 73 | = atoi(|buff + s|
|000016a0| 69 7a 65 6f 66 20 4c 49 | 4e 45 53 20 2d 20 31 29 |izeof LI|NES - 1)|
|000016b0| 29 20 3d 3d 20 30 0a 58 | 20 20 20 20 20 7c 7c 20 |) == 0.X| || |
|000016c0| 66 67 65 74 73 28 62 75 | 66 66 2c 20 73 69 7a 65 |fgets(bu|ff, size|
|000016d0| 6f 66 20 62 75 66 66 2c | 20 49 6e 70 75 74 29 20 |of buff,| Input) |
|000016e0| 3d 3d 20 4e 55 4c 4c 0a | 58 20 20 20 20 20 7c 7c |== NULL.|X |||
|000016f0| 20 62 75 66 66 5b 30 5d | 20 21 3d 20 27 5c 6e 27 | buff[0]| != '\n'|
|00001700| 29 0a 58 09 59 65 6c 70 | 28 22 49 6e 70 75 74 20 |).X.Yelp|("Input |
|00001710| 66 69 6c 65 20 68 61 73 | 20 62 61 64 20 66 6f 72 |file has| bad for|
|00001720| 6d 61 74 21 22 2c 20 4e | 49 4c 29 3b 0a 58 0a 58 |mat!", N|IL);.X.X|
|00001730| 20 20 20 20 2f 2a 20 47 | 65 74 20 73 70 61 63 65 | /* G|et space|
|00001740| 20 66 6f 72 20 65 61 63 | 68 20 66 69 65 6c 64 2e | for eac|h field.|
|00001750| 20 2a 2f 0a 58 20 20 20 | 20 69 66 20 28 28 54 65 | */.X | if ((Te|
|00001760| 78 74 20 3d 20 28 63 68 | 61 72 20 2a 2a 29 63 61 |xt = (ch|ar **)ca|
|00001770| 6c 6c 6f 63 28 28 75 6e | 73 69 67 6e 65 64 20 69 |lloc((un|signed i|
|00001780| 6e 74 29 4c 69 6e 65 73 | 2b 31 2c 20 73 69 7a 65 |nt)Lines|+1, size|
|00001790| 6f 66 28 63 68 61 72 20 | 2a 29 29 29 20 3d 3d 20 |of(char |*))) == |
|000017a0| 4e 55 4c 4c 29 0a 58 09 | 59 65 6c 70 28 22 63 61 |NULL).X.|Yelp("ca|
|000017b0| 6c 6c 6f 63 20 66 61 69 | 6c 75 72 65 20 23 31 22 |lloc fai|lure #1"|
|000017c0| 2c 20 4e 49 4c 29 3b 0a | 58 20 20 20 20 66 6f 72 |, NIL);.|X for|
|000017d0| 20 28 69 20 3d 20 4c 69 | 6e 65 73 20 2b 20 31 3b | (i = Li|nes + 1;|
|000017e0| 20 2d 2d 69 20 3e 3d 20 | 30 3b 20 29 0a 58 09 69 | --i >= |0; ).X.i|
|000017f0| 66 20 28 28 54 65 78 74 | 5b 69 5d 20 3d 20 28 63 |f ((Text|[i] = (c|
|00001800| 68 61 72 20 2a 29 63 61 | 6c 6c 6f 63 28 4c 49 4e |har *)ca|lloc(LIN|
|00001810| 45 53 49 5a 45 2c 20 31 | 29 29 20 3d 3d 20 4e 55 |ESIZE, 1|)) == NU|
|00001820| 4c 4c 29 0a 58 09 20 20 | 20 20 59 65 6c 70 28 22 |LL).X. | Yelp("|
|00001830| 63 61 6c 6c 6f 63 20 66 | 61 69 6c 75 72 65 20 23 |calloc f|ailure #|
|00001840| 32 22 2c 20 4e 49 4c 29 | 3b 0a 58 0a 58 20 20 20 |2", NIL)|;.X.X |
|00001850| 20 77 68 69 6c 65 20 28 | 21 66 65 6f 66 28 49 6e | while (|!feof(In|
|00001860| 70 75 74 29 29 20 7b 0a | 58 09 2f 2a 20 52 65 61 |put)) {.|X./* Rea|
|00001870| 64 20 61 20 66 69 65 6c | 64 20 61 72 72 61 79 20 |d a fiel|d array |
|00001880| 66 72 6f 6d 20 74 68 65 | 20 6c 69 73 74 20 66 69 |from the| list fi|
|00001890| 6c 65 2e 20 2a 2f 0a 58 | 09 66 6f 72 20 28 69 20 |le. */.X|.for (i |
|000018a0| 3d 20 30 3b 20 69 20 3c | 3d 20 4c 69 6e 65 73 3b |= 0; i <|= Lines;|
|000018b0| 20 69 2b 2b 29 20 7b 0a | 58 09 20 20 20 20 69 66 | i++) {.|X. if|
|000018c0| 20 28 66 67 65 74 73 28 | 54 65 78 74 5b 69 5d 2c | (fgets(|Text[i],|
|000018d0| 20 4c 49 4e 45 53 49 5a | 45 2c 20 49 6e 70 75 74 | LINESIZ|E, Input|
|000018e0| 29 20 3d 3d 20 4e 55 4c | 4c 29 20 7b 0a 58 09 09 |) == NUL|L) {.X..|
|000018f0| 69 66 20 28 69 29 0a 58 | 09 09 20 20 20 20 59 65 |if (i).X|.. Ye|
|00001900| 6c 70 28 22 50 72 65 6d | 61 74 75 72 65 20 65 6e |lp("Prem|ature en|
|00001910| 64 20 6f 66 20 69 6e 70 | 75 74 3f 22 2c 20 4e 49 |d of inp|ut?", NI|
|00001920| 4c 29 3b 0a 58 09 09 65 | 78 69 74 28 30 29 3b 0a |L);.X..e|xit(0);.|
|00001930| 58 09 20 20 20 20 7d 0a | 58 09 20 20 20 20 69 66 |X. }.|X. if|
|00001940| 20 28 70 20 3d 20 69 6e | 64 65 78 28 54 65 78 74 | (p = in|dex(Text|
|00001950| 5b 69 5d 2c 20 27 5c 6e | 27 29 29 0a 58 09 09 2a |[i], '\n|')).X..*|
|00001960| 70 20 3d 20 27 5c 30 27 | 3b 0a 58 09 7d 0a 58 0a |p = '\0'|;.X.}.X.|
|00001970| 58 09 2f 2a 20 52 65 61 | 64 20 74 68 65 20 74 65 |X./* Rea|d the te|
|00001980| 6d 70 6c 61 74 65 20 66 | 69 6c 65 2c 20 64 6f 69 |mplate f|ile, doi|
|00001990| 6e 67 20 66 69 6c 6c 2d | 69 6e 73 20 61 73 20 64 |ng fill-|ins as d|
|000019a0| 69 72 65 63 74 65 64 2e | 20 2a 2f 0a 58 09 28 76 |irected.| */.X.(v|
|000019b0| 6f 69 64 29 72 65 77 69 | 6e 64 28 79 79 69 6e 29 |oid)rewi|nd(yyin)|
|000019c0| 3b 0a 58 09 79 79 6c 65 | 78 28 29 3b 0a 58 20 20 |;.X.yyle|x();.X |
|000019d0| 20 20 7d 0a 58 0a 58 20 | 20 20 20 65 78 69 74 28 | }.X.X | exit(|
|000019e0| 30 29 3b 0a 58 7d 0a 58 | 25 7d 0a 58 0a 58 25 25 |0);.X}.X|%}.X.X%%|
|000019f0| 0a 58 0a 58 5c 24 5c 24 | 5b 30 2d 39 5d 2b 5c 24 |.X.X\$\$|[0-9]+\$|
|00001a00| 09 7b 0a 58 09 09 09 69 | 6e 74 09 20 69 3b 0a 58 |.{.X...i|nt. i;.X|
|00001a10| 0a 58 09 09 09 69 20 3d | 20 61 74 6f 69 28 26 79 |.X...i =| atoi(&y|
|00001a20| 79 74 65 78 74 5b 32 5d | 29 20 2d 20 31 3b 0a 58 |ytext[2]|) - 1;.X|
|00001a30| 09 09 09 70 72 69 6e 74 | 66 28 22 25 73 22 2c 20 |...print|f("%s", |
|00001a40| 69 20 3e 3d 20 30 20 26 | 26 20 69 20 3c 20 4c 69 |i >= 0 &|& i < Li|
|00001a50| 6e 65 73 20 3f 20 54 65 | 78 74 5b 69 5d 20 3a 20 |nes ? Te|xt[i] : |
|00001a60| 79 79 74 65 78 74 29 3b | 0a 58 09 09 7d 0a 58 2e |yytext);|.X..}.X.|
|00001a70| 09 09 45 43 48 4f 3b 0a | 58 0a 58 25 25 0a 45 4e |..ECHO;.|X.X%%.EN|
|00001a80| 44 5f 4f 46 5f 6d 6d 65 | 72 67 65 2e 6c 0a 69 66 |D_OF_mme|rge.l.if|
|00001a90| 20 74 65 73 74 20 32 35 | 31 31 20 2d 6e 65 20 60 | test 25|11 -ne `|
|00001aa0| 77 63 20 2d 63 20 3c 6d | 6d 65 72 67 65 2e 6c 60 |wc -c <m|merge.l`|
|00001ab0| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00001ac0| 73 68 61 72 3a 20 5c 22 | 6d 6d 65 72 67 65 2e 6c |shar: \"|mmerge.l|
|00001ad0| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00001ae0| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 66 69 0a | wrong s|ize!.fi.|
|00001af0| 23 20 65 6e 64 20 6f 66 | 20 6f 76 65 72 77 72 69 |# end of| overwri|
|00001b00| 74 69 6e 67 20 63 68 65 | 63 6b 0a 66 69 0a 65 63 |ting che|ck.fi.ec|
|00001b10| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00001b20| 69 6e 67 20 5c 22 4d 61 | 6b 65 66 69 6c 65 5c 22 |ing \"Ma|kefile\"|
|00001b30| 20 5c 28 33 36 36 20 63 | 68 61 72 61 63 74 65 72 | \(366 c|haracter|
|00001b40| 73 5c 29 0a 69 66 20 74 | 65 73 74 20 2d 66 20 4d |s\).if t|est -f M|
|00001b50| 61 6b 65 66 69 6c 65 20 | 3b 20 74 68 65 6e 20 0a |akefile |; then .|
|00001b60| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00001b70| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|00001b80| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00001b90| 22 4d 61 6b 65 66 69 6c | 65 5c 22 0a 65 6c 73 65 |"Makefil|e\".else|
|00001ba0| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 4d |.sed "s/|^X//" >M|
|00001bb0| 61 6b 65 66 69 6c 65 20 | 3c 3c 27 45 4e 44 5f 4f |akefile |<<'END_O|
|00001bc0| 46 5f 4d 61 6b 65 66 69 | 6c 65 27 0a 58 23 23 0a |F_Makefi|le'.X##.|
|00001bd0| 58 23 23 20 20 4d 4d 45 | 52 47 45 20 4d 41 4b 45 |X## MME|RGE MAKE|
|00001be0| 46 49 4c 45 0a 58 23 23 | 0a 58 0a 58 23 23 20 20 |FILE.X##|.X.X## |
|00001bf0| 45 64 69 74 20 61 70 70 | 72 6f 70 72 69 61 74 65 |Edit app|ropriate|
|00001c00| 6c 79 2e 0a 58 43 46 4c | 41 47 53 09 3d 20 2d 4f |ly..XCFL|AGS.= -O|
|00001c10| 0a 58 44 45 53 54 50 52 | 4f 47 3d 20 2f 75 73 72 |.XDESTPR|OG= /usr|
|00001c20| 2f 6c 6f 63 61 6c 2f 62 | 69 6e 2f 6d 6d 65 72 67 |/local/b|in/mmerg|
|00001c30| 65 0a 58 44 45 53 54 4d | 41 4e 09 3d 20 2f 75 73 |e.XDESTM|AN.= /us|
|00001c40| 72 2f 6d 61 6e 2f 6d 61 | 6e 31 2f 6d 6d 65 72 67 |r/man/ma|n1/mmerg|
|00001c50| 65 2e 31 0a 58 0a 58 61 | 6c 6c 3a 09 6d 6d 65 72 |e.1.X.Xa|ll:.mmer|
|00001c60| 67 65 20 6c 69 6e 74 0a | 58 0a 58 69 6e 73 74 61 |ge lint.|X.Xinsta|
|00001c70| 6c 6c 3a 09 61 6c 6c 0a | 58 09 63 70 20 6d 6d 65 |ll:.all.|X.cp mme|
|00001c80| 72 67 65 20 24 28 44 45 | 53 54 50 52 4f 47 29 0a |rge $(DE|STPROG).|
|00001c90| 58 09 63 70 20 6d 6d 65 | 72 67 65 2e 31 20 24 28 |X.cp mme|rge.1 $(|
|00001ca0| 44 45 53 54 4d 41 4e 29 | 0a 58 0a 58 6d 6d 65 72 |DESTMAN)|.X.Xmmer|
|00001cb0| 67 65 3a 09 09 6d 6d 65 | 72 67 65 2e 63 0a 58 09 |ge:..mme|rge.c.X.|
|00001cc0| 24 28 43 43 29 20 24 28 | 43 46 4c 41 47 53 29 20 |$(CC) $(|CFLAGS) |
|00001cd0| 2d 6f 20 6d 6d 65 72 67 | 65 20 6d 6d 65 72 67 65 |-o mmerg|e mmerge|
|00001ce0| 2e 63 20 2d 6c 6c 0a 58 | 0a 58 6c 69 6e 74 3a 09 |.c -ll.X|.Xlint:.|
|00001cf0| 09 6d 6d 65 72 67 65 0a | 58 09 6c 69 6e 74 20 2d |.mmerge.|X.lint -|
|00001d00| 68 62 61 20 6d 6d 65 72 | 67 65 2e 63 20 3e 6c 69 |hba mmer|ge.c >li|
|00001d10| 6e 74 0a 58 0a 58 63 6c | 65 61 6e 3a 0a 58 09 72 |nt.X.Xcl|ean:.X.r|
|00001d20| 6d 20 2d 66 20 6d 6d 65 | 72 67 65 20 61 2e 6f 75 |m -f mme|rge a.ou|
|00001d30| 74 20 66 6f 6f 20 63 6f | 72 65 20 74 61 67 73 20 |t foo co|re tags |
|00001d40| 6c 69 6e 74 20 6d 6d 65 | 72 67 65 2e 5b 6f 63 5d |lint mme|rge.[oc]|
|00001d50| 0a 45 4e 44 5f 4f 46 5f | 4d 61 6b 65 66 69 6c 65 |.END_OF_|Makefile|
|00001d60| 0a 69 66 20 74 65 73 74 | 20 33 36 36 20 2d 6e 65 |.if test| 366 -ne|
|00001d70| 20 60 77 63 20 2d 63 20 | 3c 4d 61 6b 65 66 69 6c | `wc -c |<Makefil|
|00001d80| 65 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |e`; then|. ech|
|00001d90| 6f 20 73 68 61 72 3a 20 | 5c 22 4d 61 6b 65 66 69 |o shar: |\"Makefi|
|00001da0| 6c 65 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |le\" unp|acked wi|
|00001db0| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|00001dc0| 69 0a 23 20 65 6e 64 20 | 6f 66 20 6f 76 65 72 77 |i.# end |of overw|
|00001dd0| 72 69 74 69 6e 67 20 63 | 68 65 63 6b 0a 66 69 0a |riting c|heck.fi.|
|00001de0| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00001df0| 63 74 69 6e 67 20 5c 22 | 54 65 73 74 2e 6c 69 73 |cting \"|Test.lis|
|00001e00| 74 5c 22 20 5c 28 39 37 | 20 63 68 61 72 61 63 74 |t\" \(97| charact|
|00001e10| 65 72 73 5c 29 0a 69 66 | 20 74 65 73 74 20 2d 66 |ers\).if| test -f|
|00001e20| 20 54 65 73 74 2e 6c 69 | 73 74 20 3b 20 74 68 65 | Test.li|st ; the|
|00001e30| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00001e40| 57 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 2d 77 72 |Will not| over-wr|
|00001e50| 69 74 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ite exis|ting fil|
|00001e60| 65 20 5c 22 54 65 73 74 | 2e 6c 69 73 74 5c 22 0a |e \"Test|.list\".|
|00001e70| 65 6c 73 65 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |else.sed| "s/^X//|
|00001e80| 22 20 3e 54 65 73 74 2e | 6c 69 73 74 20 3c 3c 27 |" >Test.|list <<'|
|00001e90| 45 4e 44 5f 4f 46 5f 54 | 65 73 74 2e 6c 69 73 74 |END_OF_T|est.list|
|00001ea0| 27 0a 58 4c 49 4e 45 53 | 3a 20 34 0a 58 0a 58 52 |'.XLINES|: 4.X.XR|
|00001eb0| 69 63 68 61 72 64 20 53 | 61 6c 7a 0a 58 52 69 63 |ichard S|alz.XRic|
|00001ec0| 68 0a 58 43 61 6d 62 72 | 69 64 67 65 0a 58 4d 61 |h.XCambr|idge.XMa|
|00001ed0| 73 73 61 63 68 75 73 65 | 74 74 73 0a 58 0a 58 4a |ssachuse|tts.X.XJ|
|00001ee0| 6f 68 6e 6e 79 20 43 61 | 72 73 6f 6e 0a 58 4a 6f |ohnny Ca|rson.XJo|
|00001ef0| 6f 68 68 68 6e 79 21 0a | 58 42 75 72 62 61 6e 6b |ohhhny!.|XBurbank|
|00001f00| 0a 58 43 61 6c 69 66 6f | 72 6e 69 61 0a 58 0a 45 |.XCalifo|rnia.X.E|
|00001f10| 4e 44 5f 4f 46 5f 54 65 | 73 74 2e 6c 69 73 74 0a |ND_OF_Te|st.list.|
|00001f20| 69 66 20 74 65 73 74 20 | 39 37 20 2d 6e 65 20 60 |if test |97 -ne `|
|00001f30| 77 63 20 2d 63 20 3c 54 | 65 73 74 2e 6c 69 73 74 |wc -c <T|est.list|
|00001f40| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00001f50| 20 73 68 61 72 3a 20 5c | 22 54 65 73 74 2e 6c 69 | shar: \|"Test.li|
|00001f60| 73 74 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |st\" unp|acked wi|
|00001f70| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|00001f80| 69 0a 23 20 65 6e 64 20 | 6f 66 20 6f 76 65 72 77 |i.# end |of overw|
|00001f90| 72 69 74 69 6e 67 20 63 | 68 65 63 6b 0a 66 69 0a |riting c|heck.fi.|
|00001fa0| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00001fb0| 63 74 69 6e 67 20 5c 22 | 54 65 73 74 2e 74 65 6d |cting \"|Test.tem|
|00001fc0| 70 6c 61 74 65 5c 22 20 | 5c 28 31 39 33 20 63 68 |plate\" |\(193 ch|
|00001fd0| 61 72 61 63 74 65 72 73 | 5c 29 0a 69 66 20 74 65 |aracters|\).if te|
|00001fe0| 73 74 20 2d 66 20 54 65 | 73 74 2e 74 65 6d 70 6c |st -f Te|st.templ|
|00001ff0| 61 74 65 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |ate ; th|en . ec|
|00002000| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00002010| 74 20 6f 76 65 72 2d 77 | 72 69 74 65 20 65 78 69 |t over-w|rite exi|
|00002020| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 54 65 73 |sting fi|le \"Tes|
|00002030| 74 2e 74 65 6d 70 6c 61 | 74 65 5c 22 0a 65 6c 73 |t.templa|te\".els|
|00002040| 65 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |e.sed "s|/^X//" >|
|00002050| 54 65 73 74 2e 74 65 6d | 70 6c 61 74 65 20 3c 3c |Test.tem|plate <<|
|00002060| 27 45 4e 44 5f 4f 46 5f | 54 65 73 74 2e 74 65 6d |'END_OF_|Test.tem|
|00002070| 70 6c 61 74 65 27 0a 58 | 0c 0a 58 24 24 31 24 0a |plate'.X|..X$$1$.|
|00002080| 58 24 24 33 24 2c 20 24 | 24 34 24 0a 58 41 70 72 |X$$3$, $|$4$.XApr|
|00002090| 69 6c 20 31 2c 20 31 39 | 38 36 0a 58 0a 58 44 65 |il 1, 19|86.X.XDe|
|000020a0| 61 72 20 24 24 31 24 3a | 0a 58 0a 58 59 6f 75 20 |ar $$1$:|.X.XYou |
|000020b0| 6d 61 79 20 61 6c 72 65 | 61 64 79 20 62 65 20 61 |may alre|ady be a|
|000020c0| 20 77 69 6e 6e 65 72 21 | 20 20 54 68 61 74 27 73 | winner!| That's|
|000020d0| 20 72 69 67 68 74 2c 20 | 24 24 32 24 2c 20 79 6f | right, |$$2$, yo|
|000020e0| 75 20 63 6f 75 6c 64 20 | 62 65 0a 58 74 68 65 20 |u could |be.Xthe |
|000020f0| 66 69 72 73 74 20 69 6e | 20 74 68 65 20 74 6f 77 |first in| the tow|
|00002100| 6e 20 6f 66 20 24 24 33 | 24 2c 20 24 24 34 24 2c |n of $$3|$, $$4$,|
|00002110| 20 74 6f 20 77 69 6e 20 | 24 31 30 30 30 2e 0a 58 | to win |$1000..X|
|00002120| 09 2e 0a 58 09 2e 0a 58 | 09 2e 0a 58 09 53 69 6e |...X...X|...X.Sin|
|00002130| 63 65 72 65 6c 79 2c 0a | 58 0a 58 09 45 64 20 4d |cerely,.|X.X.Ed M|
|00002140| 63 4d 61 68 6f 6e 0a 45 | 4e 44 5f 4f 46 5f 54 65 |cMahon.E|ND_OF_Te|
|00002150| 73 74 2e 74 65 6d 70 6c | 61 74 65 0a 69 66 20 74 |st.templ|ate.if t|
|00002160| 65 73 74 20 31 39 33 20 | 2d 6e 65 20 60 77 63 20 |est 193 |-ne `wc |
|00002170| 2d 63 20 3c 54 65 73 74 | 2e 74 65 6d 70 6c 61 74 |-c <Test|.templat|
|00002180| 65 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |e`; then|. ech|
|00002190| 6f 20 73 68 61 72 3a 20 | 5c 22 54 65 73 74 2e 74 |o shar: |\"Test.t|
|000021a0| 65 6d 70 6c 61 74 65 5c | 22 20 75 6e 70 61 63 6b |emplate\|" unpack|
|000021b0| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|000021c0| 7a 65 21 0a 66 69 0a 23 | 20 65 6e 64 20 6f 66 20 |ze!.fi.#| end of |
|000021d0| 6f 76 65 72 77 72 69 74 | 69 6e 67 20 63 68 65 63 |overwrit|ing chec|
|000021e0| 6b 0a 66 69 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |k.fi.ech|o shar: |
|000021f0| 45 6e 64 20 6f 66 20 73 | 68 65 6c 6c 20 61 72 63 |End of s|hell arc|
|00002200| 68 69 76 65 2e 0a 65 78 | 69 74 20 30 0a 2d 2d 20 |hive..ex|it 0.-- |
|00002210| 0a 2d 2d 0a 52 69 63 68 | 20 24 61 6c 7a 09 09 09 |.--.Rich| $alz...|
|00002220| 09 09 22 44 72 75 67 20 | 74 65 73 74 73 20 70 2a |.."Drug |tests p*|
|00002230| 2a 73 20 6d 65 20 6f 66 | 66 22 0a 4d 69 72 72 6f |*s me of|f".Mirro|
|00002240| 72 20 53 79 73 74 65 6d | 73 2c 20 43 61 6d 62 72 |r System|s, Cambr|
|00002250| 69 64 67 65 20 4d 61 73 | 73 61 63 68 75 73 65 74 |idge Mas|sachuset|
|00002260| 74 73 09 09 72 73 40 6d | 69 72 72 6f 72 2e 54 4d |ts..rs@m|irror.TM|
|00002270| 43 2e 43 4f 4d 0a 7b 61 | 64 65 6c 69 65 2c 20 6d |C.COM.{a|delie, m|
|00002280| 69 74 2d 65 64 64 69 65 | 2c 20 69 68 6e 70 34 2c |it-eddie|, ihnp4,|
|00002290| 20 68 61 72 76 61 72 64 | 21 77 6a 68 31 32 2c 20 | harvard|!wjh12, |
|000022a0| 63 63 61 2c 20 63 62 6f | 73 67 64 2c 20 73 65 69 |cca, cbo|sgd, sei|
|000022b0| 73 6d 6f 7d 21 6d 69 72 | 72 6f 72 21 72 73 0a 0a |smo}!mir|ror!rs..|
|000022c0| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+