home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sources / misc / 4225 < prev    next >
SHell self-extracting ARchive  |  1992-12-21  |  10.6 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
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 50 61 |.sources|.misc.Pa|
|00000020| 74 68 3a 20 73 70 61 72 | 6b 79 21 6b 65 6e 74 0a |th: spar|ky!kent.|
|00000030| 46 72 6f 6d 3a 20 63 75 | 6c 62 65 72 74 40 6e 69 |From: cu|lbert@ni|
|00000040| 6e 6a 61 2d 74 75 72 74 | 6c 65 2e 4d 49 54 2e 45 |nja-turt|le.MIT.E|
|00000050| 44 55 20 28 4a 69 6d 20 | 43 75 6c 62 65 72 74 29 |DU (Jim |Culbert)|
|00000060| 0a 53 75 62 6a 65 63 74 | 3a 20 76 33 34 69 30 38 |.Subject|: v34i08|
|00000070| 34 3a 20 20 72 66 63 67 | 65 74 20 2d 20 52 46 43 |4: rfcg|et - RFC|
|00000080| 20 72 65 74 72 69 65 76 | 61 6c 20 6d 65 63 68 61 | retriev|al mecha|
|00000090| 6e 69 73 6d 2c 20 50 61 | 72 74 30 31 2f 30 31 0a |nism, Pa|rt01/01.|
|000000a0| 4d 65 73 73 61 67 65 2d | 49 44 3a 20 3c 31 39 39 |Message-|ID: <199|
|000000b0| 32 44 65 63 32 31 2e 31 | 36 31 33 30 35 2e 32 37 |2Dec21.1|61305.27|
|000000c0| 36 37 37 40 73 70 61 72 | 6b 79 2e 69 6d 64 2e 73 |677@spar|ky.imd.s|
|000000d0| 74 65 72 6c 69 6e 67 2e | 63 6f 6d 3e 0a 46 6f 6c |terling.|com>.Fol|
|000000e0| 6c 6f 77 75 70 2d 54 6f | 3a 20 63 6f 6d 70 2e 73 |lowup-To|: comp.s|
|000000f0| 6f 75 72 63 65 73 2e 64 | 0a 58 2d 4d 64 34 2d 53 |ources.d|.X-Md4-S|
|00000100| 69 67 6e 61 74 75 72 65 | 3a 20 64 32 37 31 39 32 |ignature|: d27192|
|00000110| 64 39 33 30 39 32 36 62 | 33 39 64 65 37 62 33 66 |d930926b|39de7b3f|
|00000120| 64 38 35 31 35 34 62 39 | 38 66 0a 53 65 6e 64 65 |d85154b9|8f.Sende|
|00000130| 72 3a 20 6b 65 6e 74 40 | 73 70 61 72 6b 79 2e 69 |r: kent@|sparky.i|
|00000140| 6d 64 2e 73 74 65 72 6c | 69 6e 67 2e 63 6f 6d 20 |md.sterl|ing.com |
|00000150| 28 4b 65 6e 74 20 4c 61 | 6e 64 66 69 65 6c 64 29 |(Kent La|ndfield)|
|00000160| 0a 4f 72 67 61 6e 69 7a | 61 74 69 6f 6e 3a 20 53 |.Organiz|ation: S|
|00000170| 74 65 72 6c 69 6e 67 20 | 53 6f 66 74 77 61 72 65 |terling |Software|
|00000180| 0a 44 61 74 65 3a 20 4d | 6f 6e 2c 20 32 31 20 44 |.Date: M|on, 21 D|
|00000190| 65 63 20 31 39 39 32 20 | 31 36 3a 31 33 3a 30 35 |ec 1992 |16:13:05|
|000001a0| 20 47 4d 54 0a 41 70 70 | 72 6f 76 65 64 3a 20 6b | GMT.App|roved: k|
|000001b0| 65 6e 74 40 73 70 61 72 | 6b 79 2e 69 6d 64 2e 73 |ent@spar|ky.imd.s|
|000001c0| 74 65 72 6c 69 6e 67 2e | 63 6f 6d 0a 4c 69 6e 65 |terling.|com.Line|
|000001d0| 73 3a 20 33 39 39 0a 0a | 53 75 62 6d 69 74 74 65 |s: 399..|Submitte|
|000001e0| 64 2d 62 79 3a 20 63 75 | 6c 62 65 72 74 40 6e 69 |d-by: cu|lbert@ni|
|000001f0| 6e 6a 61 2d 74 75 72 74 | 6c 65 2e 4d 49 54 2e 45 |nja-turt|le.MIT.E|
|00000200| 44 55 20 28 4a 69 6d 20 | 43 75 6c 62 65 72 74 29 |DU (Jim |Culbert)|
|00000210| 0a 50 6f 73 74 69 6e 67 | 2d 6e 75 6d 62 65 72 3a |.Posting|-number:|
|00000220| 20 56 6f 6c 75 6d 65 20 | 33 34 2c 20 49 73 73 75 | Volume |34, Issu|
|00000230| 65 20 38 34 0a 41 72 63 | 68 69 76 65 2d 6e 61 6d |e 84.Arc|hive-nam|
|00000240| 65 3a 20 72 66 63 67 65 | 74 2f 70 61 72 74 30 31 |e: rfcge|t/part01|
|00000250| 0a 45 6e 76 69 72 6f 6e | 6d 65 6e 74 3a 20 49 6e |.Environ|ment: In|
|00000260| 74 65 72 6e 65 74 2c 20 | 43 2d 73 68 65 6c 6c 0a |ternet, |C-shell.|
|00000270| 0a 72 66 63 67 65 74 20 | 69 73 20 61 20 63 2d 73 |.rfcget |is a c-s|
|00000280| 68 65 6c 6c 20 73 63 72 | 69 70 74 20 77 68 69 63 |hell scr|ipt whic|
|00000290| 68 20 66 61 63 69 6c 69 | 74 61 74 65 73 20 20 74 |h facili|tates t|
|000002a0| 68 65 20 20 72 65 74 72 | 69 65 76 61 6c 0a 6f 66 |he retr|ieval.of|
|000002b0| 20 52 65 71 75 65 73 74 | 20 46 6f 72 20 43 6f 6d | Request| For Com|
|000002c0| 6d 65 6e 74 73 20 28 52 | 46 43 29 20 44 6f 63 75 |ments (R|FC) Docu|
|000002d0| 6d 65 6e 74 73 2e 20 54 | 68 65 20 73 63 72 69 70 |ments. T|he scrip|
|000002e0| 74 20 73 75 70 70 6f 72 | 74 73 0a 74 77 6f 20 66 |t suppor|ts.two f|
|000002f0| 75 6e 63 74 69 6f 6e 73 | 3b 20 74 6f 70 69 63 20 |unctions|; topic |
|00000300| 73 65 61 72 63 68 69 6e | 67 2c 20 72 66 63 20 64 |searchin|g, rfc d|
|00000310| 6f 63 75 6d 65 6e 74 20 | 72 65 74 72 69 65 76 61 |ocument |retrieva|
|00000320| 6c 2e 20 20 54 68 65 0a | 73 63 72 69 70 74 20 20 |l. The.|script |
|00000330| 75 73 65 73 20 20 61 20 | 20 6c 6f 63 61 6c 20 20 |uses a | local |
|00000340| 63 6f 70 79 20 6f 66 20 | 74 68 65 20 72 66 63 20 |copy of |the rfc |
|00000350| 69 6e 64 65 78 20 66 69 | 6c 65 20 66 6f 72 20 74 |index fi|le for t|
|00000360| 6f 70 69 63 0a 73 65 61 | 72 63 68 65 73 2e 20 54 |opic.sea|rches. T|
|00000370| 68 69 73 20 69 6e 64 65 | 78 20 6d 75 73 74 20 62 |his inde|x must b|
|00000380| 65 20 6c 6f 63 61 74 65 | 64 20 69 6e 20 61 20 64 |e locate|d in a d|
|00000390| 69 72 65 63 74 6f 72 79 | 20 6e 61 6d 65 64 20 62 |irectory| named b|
|000003a0| 79 0a 74 68 65 20 20 65 | 6e 76 69 72 6f 6e 6d 65 |y.the e|nvironme|
|000003b0| 6e 74 20 20 76 61 72 69 | 61 62 6c 65 20 52 46 43 |nt vari|able RFC|
|000003c0| 5f 44 49 52 2e 20 49 66 | 20 79 6f 75 20 63 68 6f |_DIR. If| you cho|
|000003d0| 6f 73 65 20 6e 6f 74 20 | 74 6f 20 73 65 74 0a 74 |ose not |to set.t|
|000003e0| 68 69 73 20 76 61 72 69 | 61 62 6c 65 2c 20 74 68 |his vari|able, th|
|000003f0| 65 20 73 63 72 69 70 74 | 20 75 73 65 73 20 74 68 |e script| uses th|
|00000400| 65 20 6c 6f 63 61 6c 20 | 64 69 72 65 63 74 6f 72 |e local |director|
|00000410| 79 2e 20 20 52 46 43 5f | 44 49 52 0a 69 73 20 20 |y. RFC_|DIR.is |
|00000420| 61 6c 73 6f 20 20 75 73 | 65 64 20 61 73 20 74 68 |also us|ed as th|
|00000430| 65 20 6c 6f 63 61 74 69 | 6f 6e 20 77 68 65 72 65 |e locati|on where|
|00000440| 20 72 65 74 72 69 65 76 | 65 64 20 64 6f 63 75 6d | retriev|ed docum|
|00000450| 65 6e 74 73 20 61 72 65 | 0a 70 6c 61 63 65 64 2e |ents are|.placed.|
|00000460| 20 59 6f 75 20 61 72 65 | 20 77 61 72 6e 65 64 20 | You are| warned |
|00000470| 62 79 20 74 68 65 20 73 | 63 72 69 70 74 20 69 66 |by the s|cript if|
|00000480| 20 74 68 69 73 20 76 61 | 72 69 61 62 6c 65 20 20 | this va|riable |
|00000490| 69 73 6e 27 74 0a 73 65 | 74 2e 20 20 49 66 20 74 |isn't.se|t. If t|
|000004a0| 68 65 20 69 6e 64 65 78 | 20 66 69 6c 65 20 69 73 |he index| file is|
|000004b0| 20 6e 6f 74 20 66 6f 75 | 6e 64 20 77 68 65 6e 20 | not fou|nd when |
|000004c0| 74 68 65 20 73 63 72 69 | 70 74 20 69 73 20 72 75 |the scri|pt is ru|
|000004d0| 6e 2c 0a 74 68 65 20 74 | 6f 6f 6c 20 22 73 79 6e |n,.the t|ool "syn|
|000004e0| 63 73 22 20 77 69 74 68 | 20 61 20 6e 69 63 20 73 |cs" with| a nic s|
|000004f0| 65 72 76 65 72 20 63 6f | 70 79 20 74 68 65 6e 20 |erver co|py then |
|00000500| 20 70 72 6f 63 65 65 64 | 73 20 20 77 69 74 68 0a | proceed|s with.|
|00000510| 61 72 67 75 6d 65 6e 74 | 20 70 72 6f 63 65 73 73 |argument| process|
|00000520| 69 6e 67 2e 0a 0a 4a 69 | 6d 0a 2d 2d 2d 2d 2d 2d |ing...Ji|m.------|
|00000530| 2d 2d 2d 0a 23 21 20 2f | 62 69 6e 2f 73 68 0a 23 |---.#! /|bin/sh.#|
|00000540| 20 54 68 69 73 20 69 73 | 20 61 20 73 68 65 6c 6c | This is| a shell|
|00000550| 20 61 72 63 68 69 76 65 | 2e 20 20 52 65 6d 6f 76 | archive|. Remov|
|00000560| 65 20 61 6e 79 74 68 69 | 6e 67 20 62 65 66 6f 72 |e anythi|ng befor|
|00000570| 65 20 74 68 69 73 20 6c | 69 6e 65 2c 20 74 68 65 |e this l|ine, the|
|00000580| 6e 20 66 65 65 64 20 69 | 74 0a 23 20 69 6e 74 6f |n feed i|t.# into|
|00000590| 20 61 20 73 68 65 6c 6c | 20 76 69 61 20 22 73 68 | a shell| via "sh|
|000005a0| 20 66 69 6c 65 22 20 6f | 72 20 73 69 6d 69 6c 61 | file" o|r simila|
|000005b0| 72 2e 20 20 54 6f 20 6f | 76 65 72 77 72 69 74 65 |r. To o|verwrite|
|000005c0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 73 2c | existin|g files,|
|000005d0| 0a 23 20 74 79 70 65 20 | 22 73 68 20 66 69 6c 65 |.# type |"sh file|
|000005e0| 20 2d 63 22 2e 0a 23 20 | 43 6f 6e 74 65 6e 74 73 | -c"..# |Contents|
|000005f0| 3a 20 20 72 66 63 67 65 | 74 20 72 66 63 67 65 74 |: rfcge|t rfcget|
|00000600| 2e 31 0a 23 20 57 72 61 | 70 70 65 64 20 62 79 20 |.1.# Wra|pped by |
|00000610| 6b 65 6e 74 40 73 70 61 | 72 6b 79 20 6f 6e 20 4d |kent@spa|rky on M|
|00000620| 6f 6e 20 44 65 63 20 32 | 31 20 31 30 3a 30 37 3a |on Dec 2|1 10:07:|
|00000630| 30 39 20 31 39 39 32 0a | 50 41 54 48 3d 2f 62 69 |09 1992.|PATH=/bi|
|00000640| 6e 3a 2f 75 73 72 2f 62 | 69 6e 3a 2f 75 73 72 2f |n:/usr/b|in:/usr/|
|00000650| 75 63 62 3a 2f 75 73 72 | 2f 6c 6f 63 61 6c 2f 62 |ucb:/usr|/local/b|
|00000660| 69 6e 3a 2f 75 73 72 2f | 6c 62 69 6e 20 3b 20 65 |in:/usr/|lbin ; e|
|00000670| 78 70 6f 72 74 20 50 41 | 54 48 0a 65 63 68 6f 20 |xport PA|TH.echo |
|00000680| 49 66 20 74 68 69 73 20 | 61 72 63 68 69 76 65 20 |If this |archive |
|00000690| 69 73 20 63 6f 6d 70 6c | 65 74 65 2c 20 79 6f 75 |is compl|ete, you|
|000006a0| 20 77 69 6c 6c 20 73 65 | 65 20 74 68 65 20 66 6f | will se|e the fo|
|000006b0| 6c 6c 6f 77 69 6e 67 20 | 6d 65 73 73 61 67 65 3a |llowing |message:|
|000006c0| 0a 65 63 68 6f 20 27 20 | 20 20 20 20 20 20 20 20 |.echo ' | |
|000006d0| 20 22 73 68 61 72 3a 20 | 45 6e 64 20 6f 66 20 61 | "shar: |End of a|
|000006e0| 72 63 68 69 76 65 20 31 | 20 28 6f 66 20 31 29 2e |rchive 1| (of 1).|
|000006f0| 22 27 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 72 |"'.if te|st -f 'r|
|00000700| 66 63 67 65 74 27 20 2d | 61 20 22 24 7b 31 7d 22 |fcget' -|a "${1}"|
|00000710| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00000720| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00000730| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|00000740| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|00000750| 72 66 63 67 65 74 27 5c | 22 0a 65 6c 73 65 0a 20 |rfcget'\|".else. |
|00000760| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 | echo sh|ar: Extr|
|00000770| 61 63 74 69 6e 67 20 5c | 22 27 72 66 63 67 65 74 |acting \|"'rfcget|
|00000780| 27 5c 22 20 5c 28 35 32 | 35 38 20 63 68 61 72 61 |'\" \(52|58 chara|
|00000790| 63 74 65 72 73 5c 29 0a | 20 20 73 65 64 20 22 73 |cters\).| sed "s|
|000007a0| 2f 5e 58 2f 2f 22 20 3e | 27 72 66 63 67 65 74 27 |/^X//" >|'rfcget'|
|000007b0| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|000007c0| 0a 58 23 21 20 2f 62 69 | 6e 2f 63 73 68 20 2d 66 |.X#! /bi|n/csh -f|
|000007d0| 0a 58 0a 58 23 23 23 23 | 23 23 23 23 23 23 23 23 |.X.X####|########|
|000007e0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000007f0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000800| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000810| 23 23 23 23 23 23 23 23 | 23 23 23 23 0a 58 23 0a |########|####.X#.|
|00000820| 58 23 20 20 20 20 20 20 | 20 43 6f 70 79 72 69 67 |X# | Copyrig|
|00000830| 68 74 20 31 39 39 32 20 | 62 79 20 74 68 65 20 4d |ht 1992 |by the M|
|00000840| 61 73 73 61 63 68 75 73 | 65 74 74 73 20 49 6e 73 |assachus|etts Ins|
|00000850| 74 69 74 75 74 65 20 6f | 66 20 54 65 63 68 6e 6f |titute o|f Techno|
|00000860| 6c 6f 67 79 2e 0a 58 23 | 20 20 20 20 20 20 20 41 |logy..X#| A|
|00000870| 6c 6c 20 72 69 67 68 74 | 73 20 72 65 73 65 72 76 |ll right|s reserv|
|00000880| 65 64 2e 0a 58 23 0a 58 | 23 20 20 20 20 20 20 20 |ed..X#.X|# |
|00000890| 44 65 76 65 6c 6f 70 65 | 64 20 62 79 20 74 68 65 |Develope|d by the|
|000008a0| 20 49 6e 74 65 6c 6c 69 | 67 65 6e 74 20 45 6e 67 | Intelli|gent Eng|
|000008b0| 69 6e 65 65 72 69 6e 67 | 20 53 79 73 74 65 6d 73 |ineering| Systems|
|000008c0| 20 4c 61 62 6f 72 61 74 | 6f 72 79 0a 58 23 20 20 | Laborat|ory.X# |
|000008d0| 20 20 20 20 20 4d 2e 49 | 2e 54 2e 2c 20 43 61 6d | M.I|.T., Cam|
|000008e0| 62 72 69 64 67 65 2c 20 | 4d 61 73 73 61 63 68 75 |bridge, |Massachu|
|000008f0| 73 65 74 74 73 2e 0a 58 | 23 0a 58 23 09 54 48 49 |setts..X|#.X#.THI|
|00000900| 53 20 53 4f 46 54 57 41 | 52 45 20 49 53 20 50 52 |S SOFTWA|RE IS PR|
|00000910| 4f 56 49 44 45 44 20 22 | 41 53 20 49 53 22 2c 20 |OVIDED "|AS IS", |
|00000920| 41 4e 44 20 4d 2e 49 2e | 54 2e 20 4d 41 4b 45 53 |AND M.I.|T. MAKES|
|00000930| 20 4e 4f 20 52 45 50 52 | 45 53 45 4e 54 41 54 49 | NO REPR|ESENTATI|
|00000940| 4f 4e 53 0a 58 23 20 20 | 20 20 20 20 20 4f 52 20 |ONS.X# | OR |
|00000950| 57 41 52 52 41 4e 54 49 | 45 53 2c 20 45 58 50 52 |WARRANTI|ES, EXPR|
|00000960| 45 53 53 20 4f 52 20 49 | 4d 50 4c 49 45 44 2e 20 |ESS OR I|MPLIED. |
|00000970| 42 79 20 77 61 79 20 6f | 66 20 65 78 61 6d 70 6c |By way o|f exampl|
|00000980| 65 2c 20 62 75 74 20 6e | 6f 74 20 0a 58 23 20 20 |e, but n|ot .X# |
|00000990| 20 20 20 20 20 6c 69 6d | 69 74 61 74 69 6f 6e 2c | lim|itation,|
|000009a0| 20 4d 2e 49 2e 54 2e 20 | 4d 41 4b 45 53 20 4e 4f | M.I.T. |MAKES NO|
|000009b0| 20 52 45 50 52 45 53 45 | 4e 54 41 54 49 4f 4e 53 | REPRESE|NTATIONS|
|000009c0| 20 4f 52 20 57 41 52 52 | 41 4e 54 49 45 53 20 4f | OR WARR|ANTIES O|
|000009d0| 46 20 0a 58 23 20 20 20 | 20 20 20 20 4d 45 52 43 |F .X# | MERC|
|000009e0| 48 41 4e 54 41 42 49 4c | 49 54 59 20 4f 52 20 46 |HANTABIL|ITY OR F|
|000009f0| 49 54 4e 45 53 53 20 46 | 4f 52 20 41 4e 59 20 50 |ITNESS F|OR ANY P|
|00000a00| 41 52 54 49 43 55 4c 41 | 52 20 50 55 52 50 4f 53 |ARTICULA|R PURPOS|
|00000a10| 45 20 4f 52 20 0a 58 23 | 09 54 48 41 54 20 54 48 |E OR .X#|.THAT TH|
|00000a20| 45 20 55 53 45 20 4f 46 | 20 54 48 45 20 4c 49 53 |E USE OF| THE LIS|
|00000a30| 43 45 4e 43 45 44 20 53 | 4f 46 54 57 41 52 45 20 |CENCED S|OFTWARE |
|00000a40| 4f 52 20 44 4f 43 55 4d | 45 4e 54 41 54 49 4f 4e |OR DOCUM|ENTATION|
|00000a50| 20 57 49 4c 4c 20 4e 4f | 54 20 0a 58 23 09 49 4e | WILL NO|T .X#.IN|
|00000a60| 46 52 49 4e 47 45 20 41 | 4e 59 20 54 48 49 52 44 |FRINGE A|NY THIRD|
|00000a70| 20 50 41 52 54 59 20 50 | 41 54 45 4e 54 53 2c 20 | PARTY P|ATENTS, |
|00000a80| 43 4f 50 59 52 49 47 48 | 54 53 2c 20 54 52 41 44 |COPYRIGH|TS, TRAD|
|00000a90| 45 4d 41 52 4b 53 20 4f | 52 20 4f 54 48 45 52 20 |EMARKS O|R OTHER |
|00000aa0| 0a 58 23 20 20 20 20 20 | 20 20 52 49 47 48 54 53 |.X# | RIGHTS|
|00000ab0| 2e 0a 58 23 0a 58 23 09 | 54 68 65 20 6e 61 6d 65 |..X#.X#.|The name|
|00000ac0| 20 6f 66 20 4d 61 73 73 | 61 63 68 75 73 65 74 74 | of Mass|achusett|
|00000ad0| 73 20 49 6e 73 74 69 74 | 75 74 65 20 6f 66 20 54 |s Instit|ute of T|
|00000ae0| 65 63 68 6e 6f 6c 6f 67 | 79 20 6f 72 20 4d 2e 49 |echnolog|y or M.I|
|00000af0| 2e 54 2e 20 6d 61 79 0a | 58 23 09 4e 4f 54 20 62 |.T. may.|X#.NOT b|
|00000b00| 65 20 75 73 65 64 20 69 | 6e 20 61 64 76 65 72 74 |e used i|n advert|
|00000b10| 69 73 69 6e 67 20 6f 72 | 20 70 75 62 6c 69 63 69 |ising or| publici|
|00000b20| 74 79 20 70 65 72 74 61 | 69 6e 69 6e 67 20 74 6f |ty perta|ining to|
|00000b30| 20 64 69 73 74 72 69 62 | 75 74 69 6f 6e 0a 58 23 | distrib|ution.X#|
|00000b40| 09 6f 66 20 74 68 65 20 | 73 6f 66 74 77 61 72 65 |.of the |software|
|00000b50| 2e 20 54 69 74 6c 65 20 | 74 6f 20 63 6f 70 79 72 |. Title |to copyr|
|00000b60| 69 67 68 74 20 69 6e 20 | 74 68 69 73 20 73 6f 66 |ight in |this sof|
|00000b70| 74 77 61 72 65 20 61 6e | 64 20 61 6e 79 20 0a 58 |tware an|d any .X|
|00000b80| 23 09 61 73 73 6f 63 69 | 61 74 65 64 20 64 6f 63 |#.associ|ated doc|
|00000b90| 75 6d 65 6e 74 61 74 69 | 6f 6e 20 73 68 61 6c 6c |umentati|on shall|
|00000ba0| 20 61 74 20 61 6c 6c 20 | 74 69 6d 65 73 20 72 65 | at all |times re|
|00000bb0| 6d 61 69 6e 20 77 69 74 | 68 20 4d 2e 49 2e 54 2e |main wit|h M.I.T.|
|00000bc0| 2c 20 0a 58 23 09 61 6e | 64 20 55 53 45 52 20 61 |, .X#.an|d USER a|
|00000bd0| 67 72 65 65 73 20 74 6f | 20 70 72 65 73 65 72 76 |grees to| preserv|
|00000be0| 65 20 74 68 65 20 73 61 | 6d 65 2e 0a 58 23 0a 58 |e the sa|me..X#.X|
|00000bf0| 23 09 50 65 72 6d 69 73 | 73 69 6f 6e 20 74 6f 20 |#.Permis|sion to |
|00000c00| 75 73 65 2c 20 63 6f 70 | 79 2c 20 6d 6f 64 69 66 |use, cop|y, modif|
|00000c10| 79 2c 20 61 6e 64 20 64 | 69 73 74 72 69 62 75 74 |y, and d|istribut|
|00000c20| 65 20 74 68 69 73 20 6d | 61 74 65 72 69 61 6c 20 |e this m|aterial |
|00000c30| 0a 58 23 09 66 6f 72 20 | 61 6e 79 20 70 75 72 70 |.X#.for |any purp|
|00000c40| 6f 73 65 20 61 6e 64 20 | 77 69 74 68 6f 75 74 20 |ose and |without |
|00000c50| 66 65 65 20 69 73 20 68 | 65 72 65 62 79 20 67 72 |fee is h|ereby gr|
|00000c60| 61 6e 74 65 64 2c 20 70 | 72 6f 76 69 64 65 64 20 |anted, p|rovided |
|00000c70| 74 68 61 74 20 0a 58 23 | 09 74 68 65 20 61 62 6f |that .X#|.the abo|
|00000c80| 76 65 20 63 6f 70 79 72 | 69 67 68 74 20 6e 6f 74 |ve copyr|ight not|
|00000c90| 69 63 65 20 61 6e 64 20 | 74 68 69 73 20 70 65 72 |ice and |this per|
|00000ca0| 6d 69 73 73 69 6f 6e 20 | 6e 6f 74 69 63 65 20 61 |mission |notice a|
|00000cb0| 70 70 65 61 72 20 69 6e | 20 0a 58 23 09 61 6c 6c |ppear in| .X#.all|
|00000cc0| 20 63 6f 70 69 65 73 2e | 0a 58 23 0a 58 23 23 23 | copies.|.X#.X###|
|00000cd0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000ce0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000cf0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000d00| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000d10| 23 23 23 23 23 0a 58 0a | 58 0a 58 0a 58 0a 58 23 |#####.X.|X.X.X.X#|
|00000d20| 6c 6f 6f 6b 20 66 6f 72 | 20 65 6e 76 69 72 6f 6e |look for| environ|
|00000d30| 6d 65 6e 74 20 76 61 72 | 69 61 62 6c 65 20 66 6f |ment var|iable fo|
|00000d40| 72 20 64 75 6d 70 69 6e | 67 20 64 69 72 65 63 74 |r dumpin|g direct|
|00000d50| 6f 72 79 2e 2e 2e 2e 2e | 2e 0a 58 0a 58 73 65 74 |ory.....|..X.Xset|
|00000d60| 65 6e 76 20 7c 20 67 72 | 65 70 20 52 46 43 5f 44 |env | gr|ep RFC_D|
|00000d70| 49 52 20 3e 26 21 20 2f | 64 65 76 2f 6e 75 6c 6c |IR >&! /|dev/null|
|00000d80| 0a 58 69 66 20 28 20 24 | 73 74 61 74 75 73 20 29 |.Xif ( $|status )|
|00000d90| 20 74 68 65 6e 0a 58 09 | 73 65 74 65 6e 76 20 52 | then.X.|setenv R|
|00000da0| 46 43 5f 44 49 52 20 60 | 70 77 64 60 0a 58 09 65 |FC_DIR `|pwd`.X.e|
|00000db0| 63 68 6f 20 22 59 6f 75 | 20 68 61 76 65 20 6e 6f |cho "You| have no|
|00000dc0| 74 20 73 70 65 63 69 66 | 69 65 64 20 61 20 64 69 |t specif|ied a di|
|00000dd0| 72 65 63 74 6f 72 79 20 | 74 6f 20 70 6c 61 63 65 |rectory |to place|
|00000de0| 20 74 68 65 22 0a 58 09 | 65 63 68 6f 20 22 72 66 | the".X.|echo "rf|
|00000df0| 63 20 69 6e 64 65 78 20 | 61 6e 64 20 72 65 74 72 |c index |and retr|
|00000e00| 69 65 76 65 64 20 72 66 | 63 20 66 69 6c 65 73 2e |ieved rf|c files.|
|00000e10| 20 54 68 65 73 65 20 77 | 69 6c 6c 20 62 65 22 0a | These w|ill be".|
|00000e20| 58 09 65 63 68 6f 20 22 | 70 6c 61 63 65 64 20 69 |X.echo "|placed i|
|00000e30| 6e 20 24 52 46 43 5f 44 | 49 52 2e 22 0a 58 09 65 |n $RFC_D|IR.".X.e|
|00000e40| 63 68 6f 20 22 54 6f 20 | 73 70 65 63 69 66 79 20 |cho "To |specify |
|00000e50| 61 20 64 69 72 65 63 74 | 6f 72 79 20 73 65 74 20 |a direct|ory set |
|00000e60| 74 68 65 20 52 46 43 5f | 44 49 52 20 65 6e 76 69 |the RFC_|DIR envi|
|00000e70| 72 6f 6e 6d 65 6e 74 20 | 76 61 72 69 61 62 6c 65 |ronment |variable|
|00000e80| 22 0a 58 09 65 63 68 6f | 20 22 22 0a 58 09 65 63 |".X.echo| "".X.ec|
|00000e90| 68 6f 20 22 22 0a 58 65 | 6e 64 69 66 0a 58 0a 58 |ho "".Xe|ndif.X.X|
|00000ea0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000eb0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000ec0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000ed0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000ee0| 23 23 0a 58 23 09 61 72 | 63 68 69 76 65 20 73 69 |##.X#.ar|chive si|
|00000ef0| 74 65 0a 58 23 0a 58 23 | 09 43 48 41 4e 47 45 20 |te.X#.X#|.CHANGE |
|00000f00| 54 48 49 53 20 56 41 52 | 49 41 42 4c 45 20 54 4f |THIS VAR|IABLE TO|
|00000f10| 20 41 43 43 45 53 53 20 | 41 20 44 49 46 46 45 52 | ACCESS |A DIFFER|
|00000f20| 45 4e 54 20 41 52 43 48 | 49 56 45 20 53 49 54 45 |ENT ARCH|IVE SITE|
|00000f30| 21 21 21 0a 58 23 0a 58 | 23 23 23 23 23 23 23 23 |!!!.X#.X|########|
|00000f40| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000f50| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000f60| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000f70| 23 23 23 23 23 23 23 23 | 23 23 0a 58 0a 58 73 65 |########|##.X.Xse|
|00000f80| 74 20 72 66 63 5f 61 72 | 63 68 69 76 65 20 3d 20 |t rfc_ar|chive = |
|00000f90| 66 74 70 2e 6e 69 73 63 | 2e 73 72 69 2e 63 6f 6d |ftp.nisc|.sri.com|
|00000fa0| 0a 58 0a 58 23 56 61 72 | 69 6f 75 73 20 61 6e 64 |.X.X#Var|ious and|
|00000fb0| 20 73 75 6e 64 72 79 20 | 6f 74 68 65 72 20 76 61 | sundry |other va|
|00000fc0| 72 69 61 62 6c 65 73 0a | 58 0a 58 23 73 65 74 20 |riables.|X.X#set |
|00000fd0| 69 6e 64 65 78 5f 6e 61 | 6d 65 20 3d 20 72 66 63 |index_na|me = rfc|
|00000fe0| 2d 69 6e 64 65 78 2d 74 | 69 74 6c 65 2d 66 69 72 |-index-t|itle-fir|
|00000ff0| 73 74 2e 74 78 74 0a 58 | 73 65 74 20 69 6e 64 65 |st.txt.X|set inde|
|00001000| 78 5f 6e 61 6d 65 20 3d | 20 72 66 63 2d 69 6e 64 |x_name =| rfc-ind|
|00001010| 65 78 2e 74 78 74 0a 58 | 73 65 74 20 6c 6f 63 61 |ex.txt.X|set loca|
|00001020| 6c 5f 64 69 72 20 3d 20 | 24 52 46 43 5f 44 49 52 |l_dir = |$RFC_DIR|
|00001030| 0a 58 73 65 74 20 72 65 | 6d 6f 74 65 5f 64 69 72 |.Xset re|mote_dir|
|00001040| 20 3d 20 72 66 63 20 0a | 58 73 65 74 20 72 66 63 | = rfc .|Xset rfc|
|00001050| 6e 75 6d 20 3d 20 28 29 | 0a 58 73 65 74 20 72 65 |num = ()|.Xset re|
|00001060| 73 70 20 3d 20 79 0a 58 | 0a 58 23 20 74 68 69 73 |sp = y.X|.X# this|
|00001070| 20 69 73 20 61 6e 6f 74 | 68 65 72 20 68 61 63 6b | is anot|her hack|
|00001080| 20 74 68 61 74 20 49 20 | 73 68 6f 75 6c 64 20 66 | that I |should f|
|00001090| 69 78 20 73 6f 6d 65 64 | 61 79 2e 2e 2e 2e 0a 58 |ix somed|ay.....X|
|000010a0| 73 65 74 20 63 68 61 72 | 6c 69 73 74 20 3d 20 61 |set char|list = a|
|000010b0| 62 63 64 65 66 67 68 69 | 6a 6b 6c 6d 6e 6f 70 71 |bcdefghi|jklmnopq|
|000010c0| 72 73 74 75 76 77 78 79 | 7a 41 42 43 44 45 46 47 |rstuvwxy|zABCDEFG|
|000010d0| 48 49 4a 4b 4c 4d 4e 4f | 50 51 52 53 54 55 56 57 |HIJKLMNO|PQRSTUVW|
|000010e0| 58 59 5a 0a 58 0a 58 23 | 20 4c 6f 6f 6b 20 66 6f |XYZ.X.X#| Look fo|
|000010f0| 72 20 6c 6f 63 61 6c 20 | 63 6f 70 79 20 6f 66 20 |r local |copy of |
|00001100| 72 66 63 20 69 6e 64 65 | 78 2e 0a 58 0a 58 69 66 |rfc inde|x..X.Xif|
|00001110| 20 28 20 21 20 2d 65 20 | 24 52 46 43 5f 44 49 52 | ( ! -e |$RFC_DIR|
|00001120| 2f 24 69 6e 64 65 78 5f | 6e 61 6d 65 20 29 20 74 |/$index_|name ) t|
|00001130| 68 65 6e 0a 58 09 65 63 | 68 6f 20 22 4c 6f 63 61 |hen.X.ec|ho "Loca|
|00001140| 6c 20 63 6f 70 79 20 6f | 66 20 72 66 63 20 69 6e |l copy o|f rfc in|
|00001150| 64 65 78 20 6e 6f 74 20 | 66 6f 75 6e 64 20 69 6e |dex not |found in|
|00001160| 20 24 52 46 43 5f 44 49 | 52 2e 22 0a 58 09 65 63 | $RFC_DI|R.".X.ec|
|00001170| 68 6f 20 22 28 46 6f 72 | 67 65 74 20 74 6f 20 73 |ho "(For|get to s|
|00001180| 65 74 20 79 6f 75 72 20 | 52 46 43 5f 44 49 52 20 |et your |RFC_DIR |
|00001190| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 20 76 61 72 69 |environm|ent vari|
|000011a0| 61 62 6c 65 3f 29 2e 22 | 0a 58 09 65 63 68 6f 20 |able?)."|.X.echo |
|000011b0| 22 54 68 69 73 20 63 6f | 6d 6d 61 6e 64 20 77 69 |"This co|mmand wi|
|000011c0| 6c 6c 20 66 6f 72 63 65 | 20 61 20 73 79 6e 63 2e |ll force| a sync.|
|000011d0| 22 0a 58 09 73 65 74 65 | 6e 76 20 53 59 4e 43 5f |".X.sete|nv SYNC_|
|000011e0| 4d 45 20 31 0a 58 65 6c | 73 65 0a 58 09 73 65 74 |ME 1.Xel|se.X.set|
|000011f0| 65 6e 76 20 53 59 4e 43 | 5f 4d 45 20 30 0a 58 65 |env SYNC|_ME 0.Xe|
|00001200| 6e 64 69 66 0a 58 0a 58 | 23 20 55 73 61 67 65 20 |ndif.X.X|# Usage |
|00001210| 73 74 61 74 65 6d 65 6e | 74 0a 58 0a 58 69 66 20 |statemen|t.X.Xif |
|00001220| 24 23 61 72 67 76 20 3d | 3d 20 30 20 74 68 65 6e |$#argv =|= 0 then|
|00001230| 0a 58 09 65 63 68 6f 20 | 22 55 73 61 67 65 3a 20 |.X.echo |"Usage: |
|00001240| 67 65 74 5f 72 66 63 20 | 5b 6f 70 74 69 6f 6e 73 |get_rfc |[options|
|00001250| 5d 20 5b 72 66 63 2d 6e | 75 6d 20 6c 69 73 74 5d |] [rfc-n|um list]|
|00001260| 22 0a 58 09 65 63 68 6f | 20 22 6f 70 74 69 6f 6e |".X.echo| "option|
|00001270| 73 22 0a 58 09 65 63 68 | 6f 20 22 09 2d 69 09 69 |s".X.ech|o ".-i.i|
|00001280| 6e 74 65 72 61 63 74 69 | 76 65 20 66 69 6c 65 20 |nteracti|ve file |
|00001290| 72 65 71 75 65 73 74 22 | 0a 58 09 65 63 68 6f 20 |request"|.X.echo |
|000012a0| 22 09 2d 74 09 73 65 61 | 72 63 68 20 66 6f 72 20 |".-t.sea|rch for |
|000012b0| 69 6e 74 65 72 6e 65 74 | 20 74 6f 70 69 63 22 0a |internet| topic".|
|000012c0| 58 09 65 63 68 6f 20 22 | 09 2d 73 09 73 79 6e 63 |X.echo "|.-s.sync|
|000012d0| 20 6c 6f 63 61 6c 20 69 | 6e 64 65 78 20 77 69 74 | local i|ndex wit|
|000012e0| 68 20 61 72 63 68 69 76 | 65 20 73 69 74 65 22 0a |h archiv|e site".|
|000012f0| 58 09 67 6f 74 6f 20 44 | 4f 4e 45 0a 58 65 6e 64 |X.goto D|ONE.Xend|
|00001300| 69 66 0a 58 0a 58 23 70 | 72 6f 63 65 73 73 20 74 |if.X.X#p|rocess t|
|00001310| 6f 70 69 63 20 61 6e 64 | 20 73 79 6e 63 20 62 65 |opic and| sync be|
|00001320| 66 6f 72 65 20 70 72 6f | 63 65 73 73 69 6e 67 20 |fore pro|cessing |
|00001330| 69 6e 74 65 72 61 63 74 | 69 76 65 0a 58 0a 58 23 |interact|ive.X.X#|
|00001340| 20 49 66 20 74 68 65 72 | 65 20 69 73 20 6e 6f 20 | If ther|e is no |
|00001350| 69 6e 64 65 78 20 77 65 | 20 64 6f 20 61 20 73 79 |index we| do a sy|
|00001360| 6e 63 2e 20 46 69 72 73 | 74 0a 58 23 20 73 63 61 |nc. Firs|t.X# sca|
|00001370| 6e 20 61 72 67 6c 69 73 | 74 20 61 6e 64 20 64 65 |n arglis|t and de|
|00001380| 6c 65 74 65 20 73 79 6e | 63 20 72 65 71 75 65 73 |lete syn|c reques|
|00001390| 74 73 2e 20 54 68 65 6e | 0a 58 23 20 70 72 65 70 |ts. Then|.X# prep|
|000013a0| 65 6e 64 20 73 79 6e 63 | 20 6f 70 74 69 6f 6e 2e |end sync| option.|
|000013b0| 20 49 74 20 77 6f 72 6b | 73 20 61 6e 79 77 61 79 | It work|s anyway|
|000013c0| 2e 2e 2e 2e 2e 0a 58 0a | 58 69 66 20 24 53 59 4e |......X.|Xif $SYN|
|000013d0| 43 5f 4d 45 20 74 68 65 | 6e 0a 58 09 73 65 74 20 |C_ME the|n.X.set |
|000013e0| 63 70 79 20 3d 20 28 20 | 24 61 72 67 76 20 29 0a |cpy = ( |$argv ).|
|000013f0| 58 09 73 65 74 20 63 70 | 79 31 20 3d 20 22 22 0a |X.set cp|y1 = "".|
|00001400| 58 09 77 68 69 6c 65 20 | 28 20 24 23 63 70 79 20 |X.while |( $#cpy |
|00001410| 3e 20 30 20 29 0a 58 09 | 09 73 77 69 74 63 68 20 |> 0 ).X.|.switch |
|00001420| 28 20 24 63 70 79 5b 31 | 5d 20 29 0a 58 0a 58 09 |( $cpy[1|] ).X.X.|
|00001430| 09 09 63 61 73 65 20 22 | 2d 73 22 3a 0a 58 09 09 |..case "|-s":.X..|
|00001440| 09 09 62 72 65 61 6b 73 | 77 0a 58 0a 58 09 09 09 |..breaks|w.X.X...|
|00001450| 64 65 66 61 75 6c 74 3a | 0a 58 09 09 09 09 73 65 |default:|.X....se|
|00001460| 74 20 63 70 79 31 20 3d | 20 22 24 63 70 79 31 20 |t cpy1 =| "$cpy1 |
|00001470| 24 63 70 79 5b 31 5d 22 | 0a 58 09 09 65 6e 64 73 |$cpy[1]"|.X..ends|
|00001480| 77 0a 58 09 73 68 69 66 | 74 20 63 70 79 0a 58 09 |w.X.shif|t cpy.X.|
|00001490| 65 6e 64 0a 58 0a 58 09 | 73 65 74 20 63 70 79 31 |end.X.X.|set cpy1|
|000014a0| 20 3d 20 22 2d 73 20 24 | 63 70 79 31 22 0a 58 09 | = "-s $|cpy1".X.|
|000014b0| 73 65 74 20 61 72 67 76 | 20 3d 20 28 20 24 63 70 |set argv| = ( $cp|
|000014c0| 79 31 20 29 0a 58 65 6e | 64 69 66 0a 58 0a 58 73 |y1 ).Xen|dif.X.Xs|
|000014d0| 65 74 20 63 70 79 20 3d | 20 28 20 24 61 72 67 76 |et cpy =| ( $argv|
|000014e0| 20 29 0a 58 0a 58 46 49 | 52 53 54 5f 41 52 47 5f | ).X.XFI|RST_ARG_|
|000014f0| 4c 4f 4f 50 3a 0a 58 77 | 68 69 6c 65 20 28 20 24 |LOOP:.Xw|hile ( $|
|00001500| 23 63 70 79 20 3e 20 30 | 20 29 0a 58 73 77 69 74 |#cpy > 0| ).Xswit|
|00001510| 63 68 20 28 20 24 63 70 | 79 5b 31 5d 20 29 0a 58 |ch ( $cp|y[1] ).X|
|00001520| 0a 58 09 63 61 73 65 20 | 22 2d 74 22 3a 0a 58 09 |.X.case |"-t":.X.|
|00001530| 09 73 68 69 66 74 20 63 | 70 79 0a 58 09 09 73 65 |.shift c|py.X..se|
|00001540| 74 20 61 67 61 69 6e 20 | 3d 20 79 0a 58 09 09 77 |t again |= y.X..w|
|00001550| 68 69 6c 65 20 28 20 24 | 61 67 61 69 6e 20 3d 3d |hile ( $|again ==|
|00001560| 20 79 20 29 0a 58 09 09 | 09 65 63 68 6f 20 2d 6e | y ).X..|.echo -n|
|00001570| 20 22 45 6e 74 65 72 20 | 74 6f 70 69 63 3a 20 22 | "Enter |topic: "|
|00001580| 0a 58 09 09 09 73 65 74 | 20 72 65 73 70 20 3d 20 |.X...set| resp = |
|00001590| 22 24 3c 22 0a 58 09 09 | 09 69 66 20 28 20 22 24 |"$<".X..|.if ( "$|
|000015a0| 72 65 73 70 22 20 21 3d | 20 22 22 20 29 20 74 68 |resp" !=| "" ) th|
|000015b0| 65 6e 0a 58 09 09 09 09 | 65 67 72 65 70 20 2d 69 |en.X....|egrep -i|
|000015c0| 20 22 24 72 65 73 70 22 | 20 24 52 46 43 5f 44 49 | "$resp"| $RFC_DI|
|000015d0| 52 2f 24 69 6e 64 65 78 | 5f 6e 61 6d 65 0a 58 09 |R/$index|_name.X.|
|000015e0| 09 09 65 6e 64 69 66 0a | 58 09 09 09 73 65 74 20 |..endif.|X...set |
|000015f0| 61 67 61 69 6e 20 3d 20 | 22 6e 22 0a 58 09 09 09 |again = |"n".X...|
|00001600| 65 63 68 6f 20 2d 6e 20 | 22 53 65 61 72 63 68 20 |echo -n |"Search |
|00001610| 61 67 61 69 6e 3f 20 28 | 79 2f 6e 29 20 5b 6e 5d |again? (|y/n) [n]|
|00001620| 3a 20 22 0a 58 09 09 09 | 73 65 74 20 61 67 61 69 |: ".X...|set agai|
|00001630| 6e 20 3d 20 24 3c 0a 58 | 09 09 09 69 66 20 28 20 |n = $<.X|...if ( |
|00001640| 22 24 61 67 61 69 6e 22 | 20 21 3d 20 22 22 20 29 |"$again"| != "" )|
|00001650| 20 74 68 65 6e 0a 58 09 | 09 09 09 73 65 74 20 61 | then.X.|...set a|
|00001660| 67 61 69 6e 20 3d 20 60 | 65 78 70 72 20 73 75 62 |gain = `|expr sub|
|00001670| 73 74 72 20 22 24 61 67 | 61 69 6e 22 20 31 20 31 |str "$ag|ain" 1 1|
|00001680| 60 0a 58 09 09 09 65 6e | 64 69 66 0a 58 09 09 65 |`.X...en|dif.X..e|
|00001690| 6e 64 0a 58 09 09 62 72 | 65 61 6b 73 77 0a 58 0a |nd.X..br|eaksw.X.|
|000016a0| 58 09 63 61 73 65 20 22 | 2d 73 22 3a 0a 58 09 09 |X.case "|-s":.X..|
|000016b0| 73 68 69 66 74 20 63 70 | 79 0a 58 09 09 65 63 68 |shift cp|y.X..ech|
|000016c0| 6f 20 22 53 79 6e 63 69 | 6e 67 20 6c 6f 63 61 6c |o "Synci|ng local|
|000016d0| 20 69 6e 64 65 78 20 77 | 69 74 68 20 63 6f 70 79 | index w|ith copy|
|000016e0| 20 61 74 20 24 72 66 63 | 5f 61 72 63 68 69 76 65 | at $rfc|_archive|
|000016f0| 22 0a 58 09 09 73 65 74 | 20 66 69 6c 65 5f 6c 69 |".X..set| file_li|
|00001700| 73 74 20 3d 20 24 69 6e | 64 65 78 5f 6e 61 6d 65 |st = $in|dex_name|
|00001710| 0a 58 09 09 67 6f 74 6f | 20 44 4f 5f 46 45 54 43 |.X..goto| DO_FETC|
|00001720| 48 0a 58 09 09 62 72 65 | 61 6b 73 77 09 09 0a 58 |H.X..bre|aksw...X|
|00001730| 0a 58 09 64 65 66 61 75 | 6c 74 3a 0a 58 09 09 73 |.X.defau|lt:.X..s|
|00001740| 68 69 66 74 20 63 70 79 | 0a 58 65 6e 64 73 77 0a |hift cpy|.Xendsw.|
|00001750| 58 65 6e 64 0a 58 0a 58 | 73 65 74 20 63 70 79 20 |Xend.X.X|set cpy |
|00001760| 3d 20 28 20 24 61 72 67 | 76 20 29 0a 58 0a 58 53 |= ( $arg|v ).X.XS|
|00001770| 45 43 4f 4e 44 5f 41 52 | 47 5f 4c 4f 4f 50 3a 0a |ECOND_AR|G_LOOP:.|
|00001780| 58 77 68 69 6c 65 20 28 | 20 24 23 63 70 79 20 3e |Xwhile (| $#cpy >|
|00001790| 20 30 20 29 0a 58 73 77 | 69 74 63 68 20 28 20 24 | 0 ).Xsw|itch ( $|
|000017a0| 63 70 79 5b 31 5d 20 29 | 0a 58 0a 58 09 63 61 73 |cpy[1] )|.X.X.cas|
|000017b0| 65 20 22 2d 73 22 3a 0a | 58 09 63 61 73 65 20 22 |e "-s":.|X.case "|
|000017c0| 2d 74 22 3a 0a 58 09 09 | 73 68 69 66 74 20 63 70 |-t":.X..|shift cp|
|000017d0| 79 0a 58 09 09 62 72 65 | 61 6b 73 77 0a 58 0a 58 |y.X..bre|aksw.X.X|
|000017e0| 09 63 61 73 65 20 22 2d | 69 22 0a 58 09 09 73 68 |.case "-|i".X..sh|
|000017f0| 69 66 74 20 63 70 79 0a | 58 09 09 65 63 68 6f 20 |ift cpy.|X..echo |
|00001800| 2d 6e 20 22 47 65 74 20 | 52 46 43 20 4e 75 6d 62 |-n "Get |RFC Numb|
|00001810| 65 72 28 73 29 3a 20 22 | 0a 58 09 09 73 65 74 20 |er(s): "|.X..set |
|00001820| 72 66 63 6e 75 6d 20 3d | 20 20 28 20 24 3c 20 29 |rfcnum =| ( $< )|
|00001830| 0a 58 0a 58 09 64 65 66 | 61 75 6c 74 3a 0a 58 09 |.X.X.def|ault:.X.|
|00001840| 09 73 65 74 20 6e 75 6d | 5f 6c 69 73 74 20 3d 20 |.set num|_list = |
|00001850| 28 20 24 63 70 79 20 24 | 72 66 63 6e 75 6d 20 29 |( $cpy $|rfcnum )|
|00001860| 0a 58 0a 58 09 09 77 68 | 69 6c 65 28 20 24 23 6e |.X.X..wh|ile( $#n|
|00001870| 75 6d 5f 6c 69 73 74 20 | 3e 20 30 20 29 0a 58 09 |um_list |> 0 ).X.|
|00001880| 09 09 73 65 74 20 6e 6f | 74 5f 6e 75 6d 20 3d 20 |..set no|t_num = |
|00001890| 60 65 78 70 72 20 69 6e | 64 65 78 20 24 6e 75 6d |`expr in|dex $num|
|000018a0| 5f 6c 69 73 74 5b 31 5d | 20 24 63 68 61 72 6c 69 |_list[1]| $charli|
|000018b0| 73 74 60 0a 58 09 09 09 | 69 66 20 28 20 24 6e 6f |st`.X...|if ( $no|
|000018c0| 74 5f 6e 75 6d 20 29 20 | 74 68 65 6e 0a 58 09 09 |t_num ) |then.X..|
|000018d0| 09 09 65 63 68 6f 20 42 | 61 64 20 72 66 63 20 6e |..echo B|ad rfc n|
|000018e0| 75 6d 62 65 72 20 24 6e | 75 6d 5f 6c 69 73 74 5b |umber $n|um_list[|
|000018f0| 31 5d 2e 20 45 58 49 54 | 2e 0a 58 09 09 09 09 65 |1]. EXIT|..X....e|
|00001900| 78 69 74 20 31 0a 58 09 | 09 09 65 6e 64 69 66 0a |xit 1.X.|..endif.|
|00001910| 58 0a 58 09 09 09 73 68 | 69 66 74 20 6e 75 6d 5f |X.X...sh|ift num_|
|00001920| 6c 69 73 74 0a 58 09 09 | 65 6e 64 0a 58 09 09 73 |list.X..|end.X..s|
|00001930| 65 74 20 72 66 63 6e 75 | 6d 20 3d 20 28 20 24 63 |et rfcnu|m = ( $c|
|00001940| 70 79 20 24 72 66 63 6e | 75 6d 20 29 0a 58 09 09 |py $rfcn|um ).X..|
|00001950| 62 72 65 61 6b 0a 58 65 | 6e 64 73 77 0a 58 65 6e |break.Xe|ndsw.Xen|
|00001960| 64 0a 58 0a 58 0a 58 46 | 45 54 43 48 3a 0a 58 23 |d.X.X.XF|ETCH:.X#|
|00001970| 0a 58 23 20 69 66 20 74 | 68 65 72 65 27 73 20 6e |.X# if t|here's n|
|00001980| 6f 74 68 69 6e 67 20 69 | 6e 20 74 68 65 20 72 66 |othing i|n the rf|
|00001990| 63 6e 75 6d 20 76 61 72 | 69 61 62 6c 65 2c 20 71 |cnum var|iable, q|
|000019a0| 75 69 74 2e 0a 58 23 0a | 58 0a 58 69 66 20 28 20 |uit..X#.|X.Xif ( |
|000019b0| 24 23 72 66 63 6e 75 6d | 20 3d 3d 20 30 20 29 20 |$#rfcnum| == 0 ) |
|000019c0| 67 6f 74 6f 20 44 4f 4e | 45 0a 58 0a 58 23 0a 58 |goto DON|E.X.X#.X|
|000019d0| 23 20 42 75 69 6c 64 20 | 74 68 65 20 66 69 6c 65 |# Build |the file|
|000019e0| 20 6c 69 73 74 20 66 72 | 6f 6d 20 74 68 65 20 69 | list fr|om the i|
|000019f0| 6e 64 65 78 20 6e 75 6d | 62 65 72 20 6c 69 73 74 |ndex num|ber list|
|00001a00| 0a 58 23 0a 58 0a 58 73 | 65 74 20 66 69 6c 65 5f |.X#.X.Xs|et file_|
|00001a10| 6c 69 73 74 20 3d 20 28 | 29 0a 58 66 6f 72 65 61 |list = (|).Xforea|
|00001a20| 63 68 20 66 5f 69 6e 64 | 65 78 20 28 20 24 72 66 |ch f_ind|ex ( $rf|
|00001a30| 63 6e 75 6d 20 29 0a 58 | 09 73 65 74 20 66 69 6c |cnum ).X|.set fil|
|00001a40| 65 5f 6c 69 73 74 20 3d | 20 28 20 24 66 69 6c 65 |e_list =| ( $file|
|00001a50| 5f 6c 69 73 74 20 72 66 | 63 24 66 5f 69 6e 64 65 |_list rf|c$f_inde|
|00001a60| 78 2e 74 78 74 20 29 0a | 58 65 6e 64 0a 58 0a 58 |x.txt ).|Xend.X.X|
|00001a70| 65 63 68 6f 20 22 47 65 | 74 74 69 6e 67 20 74 68 |echo "Ge|tting th|
|00001a80| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 66 69 6c 65 |e follow|ing file|
|00001a90| 73 20 66 72 6f 6d 20 66 | 72 6f 6d 20 24 72 66 63 |s from f|rom $rfc|
|00001aa0| 5f 61 72 63 68 69 76 65 | 3b 22 0a 58 66 6f 72 65 |_archive|;".Xfore|
|00001ab0| 61 63 68 20 66 69 6c 65 | 20 28 20 24 66 69 6c 65 |ach file| ( $file|
|00001ac0| 5f 6c 69 73 74 20 29 0a | 58 09 65 63 68 6f 20 24 |_list ).|X.echo $|
|00001ad0| 66 69 6c 65 0a 58 65 6e | 64 20 0a 58 0a 58 65 63 |file.Xen|d .X.Xec|
|00001ae0| 68 6f 20 2d 6e 20 22 43 | 6f 6e 74 69 6e 75 65 3f |ho -n "C|ontinue?|
|00001af0| 20 79 2f 6e 20 5b 79 5d | 3a 20 22 0a 58 73 65 74 | y/n [y]|: ".Xset|
|00001b00| 20 72 65 73 70 20 3d 20 | 24 3c 0a 58 69 66 20 28 | resp = |$<.Xif (|
|00001b10| 20 22 24 72 65 73 70 22 | 20 3d 3d 20 22 6e 22 20 | "$resp"| == "n" |
|00001b20| 29 20 74 68 65 6e 0a 58 | 09 65 63 68 6f 20 41 42 |) then.X|.echo AB|
|00001b30| 4f 52 54 0a 58 09 67 6f | 74 6f 20 44 4f 4e 45 0a |ORT.X.go|to DONE.|
|00001b40| 58 65 6e 64 69 66 0a 58 | 0a 58 0a 58 23 0a 58 23 |Xendif.X|.X.X#.X#|
|00001b50| 20 44 6f 20 74 68 65 20 | 66 65 74 63 68 21 21 0a | Do the |fetch!!.|
|00001b60| 58 23 0a 58 0a 58 44 4f | 5f 46 45 54 43 48 3a 0a |X#.X.XDO|_FETCH:.|
|00001b70| 58 0a 58 66 74 70 20 2d | 6e 20 2d 69 20 3c 3c 20 |X.Xftp -|n -i << |
|00001b80| 2b 0a 58 6f 70 65 6e 20 | 24 72 66 63 5f 61 72 63 |+.Xopen |$rfc_arc|
|00001b90| 68 69 76 65 0a 58 75 73 | 65 72 20 61 6e 6f 6e 79 |hive.Xus|er anony|
|00001ba0| 6d 6f 75 73 20 63 75 6c | 62 65 72 74 40 69 65 73 |mous cul|bert@ies|
|00001bb0| 6c 2e 6d 69 74 2e 65 64 | 75 0a 58 63 64 20 24 72 |l.mit.ed|u.Xcd $r|
|00001bc0| 65 6d 6f 74 65 5f 64 69 | 72 0a 58 6c 63 64 20 24 |emote_di|r.Xlcd $|
|00001bd0| 6c 6f 63 61 6c 5f 64 69 | 72 0a 58 62 69 6e 0a 58 |local_di|r.Xbin.X|
|00001be0| 6d 67 65 74 20 24 66 69 | 6c 65 5f 6c 69 73 74 0a |mget $fi|le_list.|
|00001bf0| 58 62 79 65 0a 58 2b 0a | 58 0a 58 23 20 49 66 20 |Xbye.X+.|X.X# If |
|00001c00| 74 68 69 73 20 77 61 73 | 20 61 20 66 6f 72 63 65 |this was| a force|
|00001c10| 64 20 73 79 6e 63 2c 20 | 72 65 74 75 72 6e 20 74 |d sync, |return t|
|00001c20| 6f 20 74 68 65 20 61 72 | 67 75 6d 65 6e 74 20 70 |o the ar|gument p|
|00001c30| 72 6f 63 65 73 73 69 6e | 67 20 6c 6f 6f 70 73 2e |rocessin|g loops.|
|00001c40| 0a 58 0a 58 69 66 20 24 | 53 59 4e 43 5f 4d 45 20 |.X.Xif $|SYNC_ME |
|00001c50| 74 68 65 6e 20 0a 58 09 | 73 65 74 65 6e 76 20 53 |then .X.|setenv S|
|00001c60| 59 4e 43 5f 4d 45 20 30 | 0a 58 09 67 6f 74 6f 20 |YNC_ME 0|.X.goto |
|00001c70| 46 49 52 53 54 5f 41 52 | 47 5f 4c 4f 4f 50 0a 58 |FIRST_AR|G_LOOP.X|
|00001c80| 65 6e 64 69 66 0a 58 0a | 58 23 0a 58 23 20 4c 69 |endif.X.|X#.X# Li|
|00001c90| 73 74 20 74 68 65 20 66 | 69 6c 65 73 20 6c 6f 63 |st the f|iles loc|
|00001ca0| 61 6c 6c 79 20 74 6f 20 | 67 69 76 65 20 61 20 6c |ally to |give a l|
|00001cb0| 69 74 74 6c 65 20 63 6f | 6e 66 69 64 65 6e 63 65 |ittle co|nfidence|
|00001cc0| 20 74 68 61 74 20 61 6c | 6c 20 77 65 6e 74 20 77 | that al|l went w|
|00001cd0| 65 6c 6c 2e 2e 2e 0a 58 | 0a 58 70 75 73 68 64 20 |ell....X|.Xpushd |
|00001ce0| 24 6c 6f 63 61 6c 5f 64 | 69 72 20 3e 26 21 20 2f |$local_d|ir >&! /|
|00001cf0| 64 65 76 2f 6e 75 6c 6c | 0a 58 6c 73 20 2d 6c 20 |dev/null|.Xls -l |
|00001d00| 24 66 69 6c 65 5f 6c 69 | 73 74 0a 58 70 6f 70 64 |$file_li|st.Xpopd|
|00001d10| 20 3e 26 21 20 2f 64 65 | 76 2f 6e 75 6c 6c 0a 58 | >&! /de|v/null.X|
|00001d20| 0a 58 23 0a 58 23 20 42 | 59 45 21 21 21 21 0a 58 |.X#.X# B|YE!!!!.X|
|00001d30| 23 0a 58 0a 58 44 4f 4e | 45 3a 0a 58 0a 58 65 78 |#.X.XDON|E:.X.Xex|
|00001d40| 69 74 20 30 0a 58 0a 45 | 4e 44 5f 4f 46 5f 46 49 |it 0.X.E|ND_OF_FI|
|00001d50| 4c 45 0a 20 20 69 66 20 | 74 65 73 74 20 35 32 35 |LE. if |test 525|
|00001d60| 38 20 2d 6e 65 20 60 77 | 63 20 2d 63 20 3c 27 72 |8 -ne `w|c -c <'r|
|00001d70| 66 63 67 65 74 27 60 3b | 20 74 68 65 6e 0a 20 20 |fcget'`;| then. |
|00001d80| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00001d90| 72 66 63 67 65 74 27 5c | 22 20 75 6e 70 61 63 6b |rfcget'\|" unpack|
|00001da0| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00001db0| 7a 65 21 0a 20 20 66 69 | 0a 20 20 63 68 6d 6f 64 |ze!. fi|. chmod|
|00001dc0| 20 2b 78 20 27 72 66 63 | 67 65 74 27 0a 20 20 23 | +x 'rfc|get'. #|
|00001dd0| 20 65 6e 64 20 6f 66 20 | 27 72 66 63 67 65 74 27 | end of |'rfcget'|
|00001de0| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00001df0| 72 66 63 67 65 74 2e 31 | 27 20 2d 61 20 22 24 7b |rfcget.1|' -a "${|
|00001e00| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00001e10| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00001e20| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00001e30| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00001e40| 5c 22 27 72 66 63 67 65 | 74 2e 31 27 5c 22 0a 65 |\"'rfcge|t.1'\".e|
|00001e50| 6c 73 65 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |lse. ec|ho shar:|
|00001e60| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 72 | Extract|ing \"'r|
|00001e70| 66 63 67 65 74 2e 31 27 | 5c 22 20 5c 28 32 33 36 |fcget.1'|\" \(236|
|00001e80| 38 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 20 |8 charac|ters\). |
|00001e90| 20 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 | sed "s/|^X//" >'|
|00001ea0| 72 66 63 67 65 74 2e 31 | 27 20 3c 3c 27 45 4e 44 |rfcget.1|' <<'END|
|00001eb0| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 2e 54 48 20 52 |_OF_FILE|'.X.TH R|
|00001ec0| 46 43 47 45 54 20 31 20 | 20 22 31 37 20 44 65 63 |FCGET 1 | "17 Dec|
|00001ed0| 20 31 39 39 32 22 0a 58 | 2e 53 48 20 4e 41 4d 45 | 1992".X|.SH NAME|
|00001ee0| 0a 58 72 66 63 67 65 74 | 20 5c 2d 20 53 69 6d 70 |.Xrfcget| \- Simp|
|00001ef0| 6c 65 20 72 66 63 20 72 | 65 74 72 69 65 76 61 6c |le rfc r|etrieval|
|00001f00| 20 74 6f 6f 6c 0a 58 2e | 53 48 20 53 59 4e 4f 50 | tool.X.|SH SYNOP|
|00001f10| 53 49 53 0a 58 2e 6e 61 | 0a 58 2e 42 20 72 66 63 |SIS.X.na|.X.B rfc|
|00001f20| 67 65 74 0a 58 5b 20 6f | 70 74 69 6f 6e 73 20 5d |get.X[ o|ptions ]|
|00001f30| 20 5b 0a 58 2e 49 20 72 | 66 63 2d 6e 75 6d 62 65 | [.X.I r|fc-numbe|
|00001f40| 72 0a 58 5d 0a 58 2e 62 | 72 0a 58 2e 61 64 0a 58 |r.X].X.b|r.X.ad.X|
|00001f50| 2e 53 48 20 44 45 53 43 | 52 49 50 54 49 4f 4e 0a |.SH DESC|RIPTION.|
|00001f60| 58 2e 4c 50 0a 58 2e 49 | 20 72 66 63 67 65 74 0a |X.LP.X.I| rfcget.|
|00001f70| 58 69 73 20 61 20 63 2d | 73 68 65 6c 6c 20 73 63 |Xis a c-|shell sc|
|00001f80| 72 69 70 74 20 77 68 69 | 63 68 20 66 61 63 69 6c |ript whi|ch facil|
|00001f90| 69 74 61 74 65 73 20 74 | 68 65 20 72 65 74 72 69 |itates t|he retri|
|00001fa0| 65 76 61 6c 20 6f 66 20 | 52 65 71 75 65 73 74 20 |eval of |Request |
|00001fb0| 46 6f 72 20 43 6f 6d 6d | 65 6e 74 73 0a 58 28 52 |For Comm|ents.X(R|
|00001fc0| 46 43 29 20 44 6f 63 75 | 6d 65 6e 74 73 2e 20 54 |FC) Docu|ments. T|
|00001fd0| 68 65 20 73 63 72 69 70 | 74 20 73 75 70 70 6f 72 |he scrip|t suppor|
|00001fe0| 74 73 20 74 77 6f 20 66 | 75 6e 63 74 69 6f 6e 73 |ts two f|unctions|
|00001ff0| 3b 20 74 6f 70 69 63 20 | 73 65 61 72 63 68 69 6e |; topic |searchin|
|00002000| 67 2c 20 72 66 63 20 0a | 58 64 6f 63 75 6d 65 6e |g, rfc .|Xdocumen|
|00002010| 74 20 72 65 74 72 69 65 | 76 61 6c 2e 20 54 68 65 |t retrie|val. The|
|00002020| 20 73 63 72 69 70 74 20 | 75 73 65 73 20 61 20 6c | script |uses a l|
|00002030| 6f 63 61 6c 20 63 6f 70 | 79 20 6f 66 20 74 68 65 |ocal cop|y of the|
|00002040| 20 72 66 63 20 69 6e 64 | 65 78 20 66 69 6c 65 20 | rfc ind|ex file |
|00002050| 66 6f 72 20 0a 58 74 6f | 70 69 63 20 73 65 61 72 |for .Xto|pic sear|
|00002060| 63 68 65 73 2e 20 54 68 | 69 73 20 69 6e 64 65 78 |ches. Th|is index|
|00002070| 20 6d 75 73 74 20 62 65 | 20 6c 6f 63 61 74 65 64 | must be| located|
|00002080| 20 69 6e 20 61 20 64 69 | 72 65 63 74 6f 72 79 20 | in a di|rectory |
|00002090| 6e 61 6d 65 64 20 62 79 | 20 74 68 65 20 0a 58 65 |named by| the .Xe|
|000020a0| 6e 76 69 72 6f 6e 6d 65 | 6e 74 20 76 61 72 69 61 |nvironme|nt varia|
|000020b0| 62 6c 65 20 52 46 43 5f | 44 49 52 2e 20 49 66 20 |ble RFC_|DIR. If |
|000020c0| 79 6f 75 20 63 68 6f 6f | 73 65 20 6e 6f 74 20 74 |you choo|se not t|
|000020d0| 6f 20 73 65 74 20 74 68 | 69 73 20 76 61 72 69 61 |o set th|is varia|
|000020e0| 62 6c 65 2c 0a 58 74 68 | 65 20 73 63 72 69 70 74 |ble,.Xth|e script|
|000020f0| 20 75 73 65 73 20 74 68 | 65 20 6c 6f 63 61 6c 20 | uses th|e local |
|00002100| 64 69 72 65 63 74 6f 72 | 79 2e 20 52 46 43 5f 44 |director|y. RFC_D|
|00002110| 49 52 20 69 73 20 61 6c | 73 6f 20 75 73 65 64 20 |IR is al|so used |
|00002120| 61 73 20 74 68 65 20 6c | 6f 63 61 74 69 6f 6e 0a |as the l|ocation.|
|00002130| 58 77 68 65 72 65 20 72 | 65 74 72 69 65 76 65 64 |Xwhere r|etrieved|
|00002140| 20 64 6f 63 75 6d 65 6e | 74 73 20 61 72 65 20 70 | documen|ts are p|
|00002150| 6c 61 63 65 64 2e 20 59 | 6f 75 20 61 72 65 20 77 |laced. Y|ou are w|
|00002160| 61 72 6e 65 64 20 62 79 | 20 74 68 65 20 73 63 72 |arned by| the scr|
|00002170| 69 70 74 20 69 66 20 74 | 68 69 73 0a 58 76 61 72 |ipt if t|his.Xvar|
|00002180| 69 61 62 6c 65 20 69 73 | 6e 27 74 20 73 65 74 2e |iable is|n't set.|
|00002190| 20 49 66 20 74 68 65 20 | 69 6e 64 65 78 20 66 69 | If the |index fi|
|000021a0| 6c 65 20 69 73 20 6e 6f | 74 20 66 6f 75 6e 64 20 |le is no|t found |
|000021b0| 77 68 65 6e 20 74 68 65 | 20 73 63 72 69 70 74 20 |when the| script |
|000021c0| 69 73 0a 58 72 75 6e 2c | 20 74 68 65 20 74 6f 6f |is.Xrun,| the too|
|000021d0| 6c 20 22 73 79 6e 63 73 | 22 20 77 69 74 68 20 61 |l "syncs|" with a|
|000021e0| 20 6e 69 63 20 73 65 72 | 76 65 72 20 63 6f 70 79 | nic ser|ver copy|
|000021f0| 20 74 68 65 6e 20 70 72 | 6f 63 65 65 64 73 20 77 | then pr|oceeds w|
|00002200| 69 74 68 20 61 72 67 75 | 6d 65 6e 74 20 0a 58 70 |ith argu|ment .Xp|
|00002210| 72 6f 63 65 73 73 69 6e | 67 2e 0a 58 0a 58 0a 58 |rocessin|g..X.X.X|
|00002220| 2e 53 48 20 4f 50 54 49 | 4f 4e 53 0a 58 2e 49 20 |.SH OPTI|ONS.X.I |
|00002230| 72 66 63 67 65 74 0a 58 | 61 6c 6c 6f 77 73 20 79 |rfcget.X|allows y|
|00002240| 6f 75 20 74 6f 20 73 70 | 65 63 69 66 79 20 74 68 |ou to sp|ecify th|
|00002250| 72 65 65 20 6f 70 74 69 | 6f 6e 73 20 6f 6e 20 74 |ree opti|ons on t|
|00002260| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 2e |he comma|nd line.|
|00002270| 20 54 68 65 20 6f 70 74 | 69 6f 6e 73 20 0a 58 73 | The opt|ions .Xs|
|00002280| 75 70 70 6f 72 74 65 64 | 20 61 72 65 20 61 73 20 |upported| are as |
|00002290| 66 6f 6c 6c 6f 77 73 3a | 0a 58 0a 58 2e 54 50 0a |follows:|.X.X.TP.|
|000022a0| 58 2d 69 0a 58 52 75 6e | 20 74 68 65 20 70 72 6f |X-i.XRun| the pro|
|000022b0| 67 72 61 6d 20 69 6e 20 | 69 6e 74 65 72 61 63 74 |gram in |interact|
|000022c0| 69 76 65 20 6d 6f 64 65 | 20 70 72 6f 6d 70 74 69 |ive mode| prompti|
|000022d0| 6e 67 20 74 68 65 20 75 | 73 65 72 20 66 6f 72 20 |ng the u|ser for |
|000022e0| 74 68 65 20 6e 75 6d 62 | 65 72 73 0a 58 6f 66 20 |the numb|ers.Xof |
|000022f0| 74 68 65 20 72 66 63 20 | 64 6f 63 75 6d 65 6e 74 |the rfc |document|
|00002300| 73 20 74 6f 20 72 65 74 | 72 69 65 76 65 20 66 72 |s to ret|rieve fr|
|00002310| 6f 6d 20 74 68 65 20 73 | 65 72 76 65 72 2e 0a 58 |om the s|erver..X|
|00002320| 2e 54 50 0a 58 2d 74 0a | 58 50 72 6f 6d 70 74 20 |.TP.X-t.|XPrompt |
|00002330| 74 68 65 20 75 73 65 72 | 20 66 6f 72 20 61 20 74 |the user| for a t|
|00002340| 6f 70 69 63 20 74 6f 20 | 73 65 61 72 63 68 20 69 |opic to |search i|
|00002350| 6e 20 74 68 65 20 69 6e | 64 65 78 20 66 69 6c 65 |n the in|dex file|
|00002360| 2e 0a 58 2e 54 50 0a 58 | 2d 73 0a 58 53 79 6e 63 |..X.TP.X|-s.XSync|
|00002370| 68 72 6f 6e 69 7a 65 20 | 6c 6f 63 61 6c 20 69 6e |hronize |local in|
|00002380| 64 65 78 20 66 69 6c 65 | 20 77 69 74 68 20 74 68 |dex file| with th|
|00002390| 65 20 6f 6e 65 20 66 6f | 75 6e 64 20 61 74 20 74 |e one fo|und at t|
|000023a0| 68 65 20 6e 69 63 2e 0a | 58 0a 58 2e 53 48 20 45 |he nic..|X.X.SH E|
|000023b0| 58 41 4d 50 4c 45 0a 58 | 2e 6e 66 0a 58 25 20 72 |XAMPLE.X|.nf.X% r|
|000023c0| 66 63 67 65 74 20 2d 69 | 20 2d 74 0a 58 45 6e 74 |fcget -i| -t.XEnt|
|000023d0| 65 72 20 74 6f 70 69 63 | 3a 20 44 56 4d 52 50 0a |er topic|: DVMRP.|
|000023e0| 58 53 65 61 72 63 68 20 | 61 67 61 69 6e 3f 20 28 |XSearch |again? (|
|000023f0| 79 2f 6e 29 20 5b 6e 5d | 3a 20 79 0a 58 45 6e 74 |y/n) [n]|: y.XEnt|
|00002400| 65 72 20 74 6f 70 69 63 | 3a 20 64 69 73 74 61 6e |er topic|: distan|
|00002410| 63 65 20 76 65 63 74 6f | 72 0a 58 31 30 37 35 20 |ce vecto|r.X1075 |
|00002420| 20 44 69 73 74 61 6e 63 | 65 20 56 65 63 74 6f 72 | Distanc|e Vector|
|00002430| 20 4d 75 6c 74 69 63 61 | 73 74 20 52 6f 75 74 69 | Multica|st Routi|
|00002440| 6e 67 20 50 72 6f 74 6f | 63 6f 6c 2e 20 57 61 69 |ng Proto|col. Wai|
|00002450| 74 7a 6d 61 6e 2c 44 2e | 3b 50 61 72 74 72 69 64 |tzman,D.|;Partrid|
|00002460| 67 65 2c 43 2e 3b 0a 58 | 53 65 61 72 63 68 20 61 |ge,C.;.X|Search a|
|00002470| 67 61 69 6e 3f 20 28 79 | 2f 6e 29 20 5b 6e 5d 3a |gain? (y|/n) [n]:|
|00002480| 20 6e 0a 58 47 65 74 20 | 52 46 43 20 4e 75 6d 62 | n.XGet |RFC Numb|
|00002490| 65 72 28 73 29 3a 20 31 | 30 37 35 0a 58 47 65 74 |er(s): 1|075.XGet|
|000024a0| 74 69 6e 67 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |ting the| followi|
|000024b0| 6e 67 20 66 69 6c 65 73 | 20 66 72 6f 6d 20 66 72 |ng files| from fr|
|000024c0| 6f 6d 20 66 74 70 2e 6e | 69 73 63 2e 73 72 69 2e |om ftp.n|isc.sri.|
|000024d0| 63 6f 6d 3b 0a 58 72 66 | 63 31 30 37 35 2e 74 78 |com;.Xrf|c1075.tx|
|000024e0| 74 0a 58 43 6f 6e 74 69 | 6e 75 65 3f 20 79 2f 6e |t.XConti|nue? y/n|
|000024f0| 20 5b 79 5d 3a 20 79 0a | 58 4c 6f 63 61 6c 20 64 | [y]: y.|XLocal d|
|00002500| 69 72 65 63 74 6f 72 79 | 20 6e 6f 77 20 2f 6d 69 |irectory| now /mi|
|00002510| 74 2f 73 74 61 66 66 2f | 52 46 43 0a 58 2d 72 77 |t/staff/|RFC.X-rw|
|00002520| 2d 72 77 2d 72 2d 2d 20 | 20 31 20 73 74 61 66 66 |-rw-r-- | 1 staff|
|00002530| 20 20 20 20 20 35 33 33 | 38 35 20 44 65 63 20 31 | 533|85 Dec 1|
|00002540| 38 20 31 33 3a 33 33 20 | 72 66 63 31 30 37 35 2e |8 13:33 |rfc1075.|
|00002550| 74 78 74 0a 58 0a 58 0a | 58 2e 53 48 20 46 49 4c |txt.X.X.|X.SH FIL|
|00002560| 45 53 0a 58 24 52 46 43 | 5f 44 49 52 2f 72 66 63 |ES.X$RFC|_DIR/rfc|
|00002570| 2d 69 6e 64 65 78 2e 74 | 78 74 0a 58 0a 58 2e 53 |-index.t|xt.X.X.S|
|00002580| 48 20 41 55 54 48 4f 52 | 0a 58 4a 69 6d 20 43 75 |H AUTHOR|.XJim Cu|
|00002590| 6c 62 65 72 74 20 28 63 | 75 6c 62 65 72 74 40 69 |lbert (c|ulbert@i|
|000025a0| 65 73 6c 2e 6d 69 74 2e | 65 64 75 29 0a 58 2e 53 |esl.mit.|edu).X.S|
|000025b0| 48 20 42 55 47 53 0a 58 | 54 68 65 20 73 63 72 69 |H BUGS.X|The scri|
|000025c0| 70 74 20 68 61 73 20 68 | 61 72 64 77 69 72 65 64 |pt has h|ardwired|
|000025d0| 20 72 65 66 65 72 65 6e | 63 65 73 20 74 6f 20 61 | referen|ces to a|
|000025e0| 20 73 70 65 63 69 66 69 | 63 20 6e 69 63 20 61 6e | specifi|c nic an|
|000025f0| 64 20 61 20 73 70 65 63 | 69 66 69 63 0a 58 69 6e |d a spec|ific.Xin|
|00002600| 64 65 78 20 66 69 6c 65 | 20 6e 61 6d 65 2e 20 49 |dex file| name. I|
|00002610| 66 20 74 68 65 73 65 20 | 63 68 61 6e 67 65 2c 20 |f these |change, |
|00002620| 74 68 65 20 73 63 72 69 | 70 74 20 77 69 6c 6c 20 |the scri|pt will |
|00002630| 62 72 65 61 6b 2e 20 54 | 68 65 20 75 73 65 72 20 |break. T|he user |
|00002640| 0a 58 6d 75 73 74 20 6d | 6f 64 69 66 79 20 73 63 |.Xmust m|odify sc|
|00002650| 72 69 70 74 20 76 61 72 | 69 61 62 6c 65 73 20 69 |ript var|iables i|
|00002660| 66 20 74 68 65 20 6e 69 | 63 20 62 65 63 6f 6d 65 |f the ni|c become|
|00002670| 73 20 75 6e 61 76 61 69 | 6c 61 62 6c 65 20 6f 72 |s unavai|lable or|
|00002680| 20 69 66 20 0a 58 74 68 | 65 20 69 6e 64 65 78 20 | if .Xth|e index |
|00002690| 69 73 20 70 75 74 20 69 | 6e 74 6f 20 61 6e 6f 74 |is put i|nto anot|
|000026a0| 68 65 72 20 66 69 6c 65 | 20 6e 61 6d 65 2e 20 49 |her file| name. I|
|000026b0| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 70 6f 73 73 |t should| be poss|
|000026c0| 69 62 6c 65 20 74 6f 20 | 0a 58 6f 76 65 72 72 69 |ible to |.Xoverri|
|000026d0| 64 65 20 74 68 65 73 65 | 20 70 61 72 61 6d 65 74 |de these| paramet|
|000026e0| 65 72 73 20 76 69 61 20 | 6f 70 74 69 6f 6e 73 20 |ers via |options |
|000026f0| 6f 72 20 61 20 63 6f 6e | 66 69 67 75 72 61 74 69 |or a con|figurati|
|00002700| 6f 6e 20 66 69 6c 65 2e | 0a 58 54 68 65 20 63 75 |on file.|.XThe cu|
|00002710| 72 72 65 6e 74 20 73 69 | 74 65 20 61 63 63 65 73 |rrent si|te acces|
|00002720| 73 65 64 20 69 73 20 66 | 74 70 2e 6e 69 73 63 2e |sed is f|tp.nisc.|
|00002730| 73 72 69 2e 63 6f 6d 20 | 61 6e 64 20 74 68 65 20 |sri.com |and the |
|00002740| 69 6e 64 65 78 20 66 69 | 6c 65 0a 58 73 65 61 72 |index fi|le.Xsear|
|00002750| 63 68 65 64 20 66 6f 72 | 20 69 73 20 72 66 63 2d |ched for| is rfc-|
|00002760| 69 6e 64 65 78 2e 74 78 | 74 2e 0a 58 0a 58 53 69 |index.tx|t..X.XSi|
|00002770| 6d 69 6c 61 72 6c 79 2c | 20 74 68 65 20 73 63 72 |milarly,| the scr|
|00002780| 69 70 74 20 61 73 73 75 | 6d 65 73 20 61 20 66 69 |ipt assu|mes a fi|
|00002790| 6c 65 20 6e 61 6d 65 20 | 66 6f 72 6d 61 74 20 6f |le name |format o|
|000027a0| 66 20 72 66 63 78 78 78 | 78 2e 74 78 74 20 66 6f |f rfcxxx|x.txt fo|
|000027b0| 72 0a 58 74 68 65 20 66 | 69 6c 65 73 20 74 6f 20 |r.Xthe f|iles to |
|000027c0| 62 65 20 72 65 74 72 69 | 65 76 65 64 2e 20 50 72 |be retri|eved. Pr|
|000027d0| 6f 62 6c 65 6d 73 20 77 | 69 6c 6c 20 61 72 69 73 |oblems w|ill aris|
|000027e0| 65 20 69 66 20 74 68 69 | 73 20 65 76 65 72 20 63 |e if thi|s ever c|
|000027f0| 68 61 6e 67 65 73 2e 0a | 58 0a 58 54 68 65 72 65 |hanges..|X.XThere|
|00002800| 20 73 68 6f 75 6c 64 20 | 62 65 20 61 6e 20 6f 70 | should |be an op|
|00002810| 74 69 6f 6e 20 74 6f 20 | 73 65 61 72 63 68 20 66 |tion to |search f|
|00002820| 6f 72 20 2e 70 73 20 66 | 69 6c 65 73 20 61 73 20 |or .ps f|iles as |
|00002830| 77 65 6c 6c 20 61 73 20 | 2e 74 78 74 20 0a 58 66 |well as |.txt .Xf|
|00002840| 69 6c 65 73 2e 0a 58 0a | 45 4e 44 5f 4f 46 5f 46 |iles..X.|END_OF_F|
|00002850| 49 4c 45 0a 20 20 69 66 | 20 74 65 73 74 20 32 33 |ILE. if| test 23|
|00002860| 36 38 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |68 -ne `|wc -c <'|
|00002870| 72 66 63 67 65 74 2e 31 | 27 60 3b 20 74 68 65 6e |rfcget.1|'`; then|
|00002880| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00002890| 5c 22 27 72 66 63 67 65 | 74 2e 31 27 5c 22 20 75 |\"'rfcge|t.1'\" u|
|000028a0| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|000028b0| 6e 67 20 73 69 7a 65 21 | 0a 20 20 66 69 0a 20 20 |ng size!|. fi. |
|000028c0| 23 20 65 6e 64 20 6f 66 | 20 27 72 66 63 67 65 74 |# end of| 'rfcget|
|000028d0| 2e 31 27 0a 66 69 0a 65 | 63 68 6f 20 73 68 61 72 |.1'.fi.e|cho shar|
|000028e0| 3a 20 45 6e 64 20 6f 66 | 20 61 72 63 68 69 76 65 |: End of| archive|
|000028f0| 20 31 20 5c 28 6f 66 20 | 31 5c 29 2e 0a 63 70 20 | 1 \(of |1\)..cp |
|00002900| 2f 64 65 76 2f 6e 75 6c | 6c 20 61 72 6b 31 69 73 |/dev/nul|l ark1is|
|00002910| 64 6f 6e 65 0a 4d 49 53 | 53 49 4e 47 3d 22 22 0a |done.MIS|SING="".|
|00002920| 66 6f 72 20 49 20 69 6e | 20 31 20 3b 20 64 6f 0a |for I in| 1 ; do.|
|00002930| 20 20 20 20 69 66 20 74 | 65 73 74 20 21 20 2d 66 | if t|est ! -f|
|00002940| 20 61 72 6b 24 7b 49 7d | 69 73 64 6f 6e 65 20 3b | ark${I}|isdone ;|
|00002950| 20 74 68 65 6e 0a 09 4d | 49 53 53 49 4e 47 3d 22 | then..M|ISSING="|
|00002960| 24 7b 4d 49 53 53 49 4e | 47 7d 20 24 7b 49 7d 22 |${MISSIN|G} ${I}"|
|00002970| 0a 20 20 20 20 66 69 0a | 64 6f 6e 65 0a 69 66 20 |. fi.|done.if |
|00002980| 74 65 73 74 20 22 24 7b | 4d 49 53 53 49 4e 47 7d |test "${|MISSING}|
|00002990| 22 20 3d 20 22 22 20 3b | 20 74 68 65 6e 0a 20 20 |" = "" ;| then. |
|000029a0| 20 20 65 63 68 6f 20 59 | 6f 75 20 68 61 76 65 20 | echo Y|ou have |
|000029b0| 74 68 65 20 61 72 63 68 | 69 76 65 2e 0a 20 20 20 |the arch|ive.. |
|000029c0| 20 72 6d 20 2d 66 20 61 | 72 6b 5b 31 2d 39 5d 69 | rm -f a|rk[1-9]i|
|000029d0| 73 64 6f 6e 65 0a 65 6c | 73 65 0a 20 20 20 20 65 |sdone.el|se. e|
|000029e0| 63 68 6f 20 59 6f 75 20 | 73 74 69 6c 6c 20 6d 75 |cho You |still mu|
|000029f0| 73 74 20 75 6e 70 61 63 | 6b 20 74 68 65 20 66 6f |st unpac|k the fo|
|00002a00| 6c 6c 6f 77 69 6e 67 20 | 61 72 63 68 69 76 65 73 |llowing |archives|
|00002a10| 3a 0a 20 20 20 20 65 63 | 68 6f 20 22 20 20 20 20 |:. ec|ho " |
|00002a20| 20 20 20 20 22 20 24 7b | 4d 49 53 53 49 4e 47 7d | " ${|MISSING}|
|00002a30| 0a 66 69 0a 65 78 69 74 | 20 30 0a 65 78 69 74 20 |.fi.exit| 0.exit |
|00002a40| 30 20 23 20 4a 75 73 74 | 20 69 6e 20 63 61 73 65 |0 # Just| in case|
|00002a50| 2e 2e 2e 0a | |.... | |
+--------+-------------------------+-------------------------+--------+--------+