home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1564 < prev    next >
SHell self-extracting ARchive  |  1990-12-28  |  6.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: 1564

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news or mail, ASCII text default
100% TrID E-Mail message (Var. 2) 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)
100% xdgMime message/rfc822 default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 78 61 | 6e 74 68 69 61 6e 40 7a |From: xa|nthian@z|
|00000010| 6f 72 63 68 2e 53 46 2d | 42 61 79 2e 4f 52 47 20 |orch.SF-|Bay.ORG |
|00000020| 28 4b 65 6e 74 20 50 61 | 75 6c 20 44 6f 6c 61 6e |(Kent Pa|ul Dolan|
|00000030| 29 0a 4e 65 77 73 67 72 | 6f 75 70 73 3a 20 61 6c |).Newsgr|oups: al|
|00000040| 74 2e 73 6f 75 72 63 65 | 73 0a 53 75 62 6a 65 63 |t.source|s.Subjec|
|00000050| 74 3a 20 61 20 22 63 75 | 74 65 20 2e 73 69 67 67 |t: a "cu|te .sigg|
|00000060| 69 65 22 20 72 61 6e 64 | 6f 6d 20 69 6e 73 65 72 |ie" rand|om inser|
|00000070| 74 65 72 20 66 6f 72 20 | 63 73 68 2e 0a 4d 65 73 |ter for |csh..Mes|
|00000080| 73 61 67 65 2d 49 44 3a | 20 3c 31 39 39 30 4a 75 |sage-ID:| <1990Ju|
|00000090| 6c 39 2e 30 30 30 35 34 | 36 2e 31 37 31 35 40 7a |l9.00054|6.1715@z|
|000000a0| 6f 72 63 68 2e 53 46 2d | 42 61 79 2e 4f 52 47 3e |orch.SF-|Bay.ORG>|
|000000b0| 0a 44 61 74 65 3a 20 39 | 20 4a 75 6c 20 39 30 20 |.Date: 9| Jul 90 |
|000000c0| 30 30 3a 30 35 3a 34 36 | 20 47 4d 54 0a 0a 48 65 |00:05:46| GMT..He|
|000000d0| 72 65 20 69 73 20 73 6f | 6d 65 74 68 69 6e 67 20 |re is so|mething |
|000000e0| 74 72 69 76 69 61 6c 20 | 62 75 74 20 66 75 6e 2e |trivial |but fun.|
|000000f0| 20 20 49 66 20 79 6f 75 | 20 70 75 74 20 61 20 63 | If you| put a c|
|00000100| 6f 6e 73 74 61 6e 74 20 | 73 69 67 6e 61 74 75 72 |onstant |signatur|
|00000110| 65 20 66 69 6c 65 0a 69 | 6e 20 68 6f 6d 65 20 64 |e file.i|n home d|
|00000120| 69 72 65 63 74 6f 72 79 | 20 66 69 6c 65 20 2e 73 |irectory| file .s|
|00000130| 69 67 67 69 65 2c 20 61 | 6e 64 20 61 20 73 65 74 |iggie, a|nd a set|
|00000140| 20 6f 66 20 22 71 75 6f | 74 61 62 6c 65 20 71 75 | of "quo|table qu|
|00000150| 6f 74 65 73 22 20 69 6e | 20 68 6f 6d 65 0a 64 69 |otes" in| home.di|
|00000160| 72 65 63 74 6f 72 79 20 | 66 69 6c 65 73 20 2e 73 |rectory |files .s|
|00000170| 69 67 30 31 2c 20 2e 73 | 69 67 30 32 2c 20 65 74 |ig01, .s|ig02, et|
|00000180| 63 2e 2c 20 74 68 65 6e | 20 63 73 68 20 73 63 72 |c., then| csh scr|
|00000190| 69 70 74 20 22 63 61 74 | 73 69 67 22 20 77 69 6c |ipt "cat|sig" wil|
|000001a0| 6c 20 77 72 69 74 65 0a | 66 69 6c 65 20 2e 73 69 |l write.|file .si|
|000001b0| 67 67 69 65 2c 20 77 72 | 69 74 65 20 61 20 6c 69 |ggie, wr|ite a li|
|000001c0| 6e 65 20 77 69 74 68 20 | 22 2d 2d 22 20 6f 6e 20 |ne with |"--" on |
|000001d0| 69 74 2c 20 61 6e 64 20 | 77 72 69 74 65 20 61 20 |it, and |write a |
|000001e0| 72 61 6e 64 6f 6d 20 66 | 69 6c 65 20 73 65 6c 65 |random f|ile sele|
|000001f0| 63 74 65 64 0a 66 72 6f | 6d 20 74 68 65 20 2e 73 |cted.fro|m the .s|
|00000200| 69 67 5b 30 2d 39 5d 2a | 20 73 65 74 20 6f 66 20 |ig[0-9]*| set of |
|00000210| 71 75 6f 74 65 73 2e 20 | 20 50 72 6f 67 72 61 6d |quotes. | Program|
|00000220| 20 63 61 74 73 69 67 20 | 63 61 6e 20 62 65 20 75 | catsig |can be u|
|00000230| 73 65 64 20 66 72 6f 6d | 20 77 69 74 68 69 6e 0a |sed from| within.|
|00000240| 6d 61 69 6c 20 6f 72 20 | 76 69 20 74 6f 20 70 75 |mail or |vi to pu|
|00000250| 74 20 61 20 70 65 72 73 | 6f 6e 61 6c 20 74 61 67 |t a pers|onal tag|
|00000260| 20 6f 6e 20 61 20 6c 65 | 74 74 65 72 20 6f 72 20 | on a le|tter or |
|00000270| 6e 65 77 73 20 61 72 74 | 69 63 6c 65 2e 20 20 41 |news art|icle. A|
|00000280| 6c 73 6f 20 69 6e 63 6c | 75 64 65 64 0a 69 73 20 |lso incl|uded.is |
|00000290| 70 72 6f 67 72 61 6d 20 | 74 69 6d 65 6d 6f 64 2e |program |timemod.|
|000002a0| 63 2c 20 77 68 69 63 68 | 20 61 63 63 65 70 74 73 |c, which| accepts|
|000002b0| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 2e | the num|ber of .|
|000002c0| 73 69 67 5b 30 2d 39 5d | 2a 20 66 69 6c 65 73 20 |sig[0-9]|* files |
|000002d0| 66 72 6f 6d 0a 73 74 64 | 69 6e 2c 20 61 6e 64 20 |from.std|in, and |
|000002e0| 75 73 65 73 20 69 74 20 | 61 73 20 61 20 6d 6f 64 |uses it |as a mod|
|000002f0| 75 6c 75 73 20 77 69 74 | 68 20 74 68 65 20 63 75 |ulus wit|h the cu|
|00000300| 72 72 65 6e 74 20 73 79 | 73 74 65 6d 20 74 69 6d |rrent sy|stem tim|
|00000310| 65 20 69 6e 20 73 65 63 | 6f 6e 64 73 20 74 6f 0a |e in sec|onds to.|
|00000320| 70 72 6f 64 75 63 65 20 | 61 20 6e 75 6d 62 65 72 |produce |a number|
|00000330| 20 66 72 6f 6d 20 31 20 | 74 6f 20 74 68 65 20 66 | from 1 |to the f|
|00000340| 69 6c 65 20 63 6f 75 6e | 74 2e 20 20 54 68 69 73 |ile coun|t. This|
|00000350| 20 69 73 20 67 6f 6f 64 | 20 65 6e 6f 75 67 68 20 | is good| enough |
|00000360| 66 6f 72 20 61 20 22 72 | 61 6e 64 6f 6d 22 0a 73 |for a "r|andom".s|
|00000370| 65 6c 65 63 74 69 6f 6e | 20 6f 66 20 61 20 73 69 |election| of a si|
|00000380| 67 6e 61 74 75 72 65 20 | 66 6f 72 20 79 6f 75 72 |gnature |for your|
|00000390| 20 6d 61 69 6c 20 6f 72 | 20 70 6f 73 74 69 6e 67 | mail or| posting|
|000003a0| 73 2e 0a 0a 45 78 61 6d | 70 6c 65 20 6f 75 74 70 |s...Exam|ple outp|
|000003b0| 75 74 3a 20 20 3b 2d 29 | 0a 0a 4b 65 6e 74 20 74 |ut: ;-)|..Kent t|
|000003c0| 68 65 20 6d 61 6e 20 66 | 72 6f 6d 20 78 61 6e 74 |he man f|rom xant|
|000003d0| 68 2e 0a 3c 78 61 6e 74 | 68 69 61 6e 40 5a 6f 72 |h..<xant|hian@Zor|
|000003e0| 63 68 2e 53 46 2d 42 61 | 79 2e 4f 52 47 3e 20 3c |ch.SF-Ba|y.ORG> <|
|000003f0| 78 61 6e 74 68 69 61 6e | 40 77 65 6c 6c 2e 73 66 |xanthian|@well.sf|
|00000400| 2e 63 61 2e 75 73 3e 0a | 2d 2d 0a 57 68 65 6e 20 |.ca.us>.|--.When |
|00000410| 73 6f 6d 65 6f 6e 65 20 | 68 61 73 20 62 72 6f 6b |someone |has brok|
|00000420| 65 6e 20 6f 66 66 20 61 | 20 72 65 6c 61 74 69 6f |en off a| relatio|
|00000430| 6e 73 68 69 70 20 77 69 | 74 68 20 79 6f 75 2c 20 |nship wi|th you, |
|00000440| 79 6f 75 20 62 65 63 6f | 6d 65 20 76 65 72 79 0a |you beco|me very.|
|00000450| 75 6e 61 74 74 72 61 63 | 74 69 76 65 2c 20 77 68 |unattrac|tive, wh|
|00000460| 69 63 68 20 63 6f 6e 66 | 69 72 6d 73 20 61 6c 6c |ich conf|irms all|
|00000470| 20 74 68 65 20 72 65 61 | 73 6f 6e 73 20 74 68 65 | the rea|sons the|
|00000480| 79 20 68 61 64 20 66 6f | 72 20 6c 65 61 76 69 6e |y had fo|r leavin|
|00000490| 67 20 79 6f 75 2e 0a 20 | 20 20 20 20 2d 2d 20 4c |g you.. | -- L|
|000004a0| 61 75 72 69 65 20 4d 6f | 6f 72 65 2c 20 53 74 61 |aurie Mo|ore, Sta|
|000004b0| 72 76 69 6e 67 20 41 67 | 61 69 6e 2c 20 69 6e 3a |rving Ag|ain, in:|
|000004c0| 20 4c 69 6b 65 20 4c 69 | 66 65 0a 0a 2d 2d 2d 2d | Like Li|fe..----|
|000004d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000004e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 38 3c 2d 2d 63 75 74 |--------|-8<--cut|
|000004f0| 20 68 65 72 65 2d 2d 3e | 38 2d 2d 2d 2d 2d 2d 2d | here-->|8-------|
|00000500| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000510| 2d 0a 23 21 20 2f 62 69 | 6e 2f 73 68 0a 23 20 54 |-.#! /bi|n/sh.# T|
|00000520| 68 69 73 20 69 73 20 61 | 20 73 68 65 6c 6c 20 61 |his is a| shell a|
|00000530| 72 63 68 69 76 65 2c 20 | 6d 65 61 6e 69 6e 67 3a |rchive, |meaning:|
|00000540| 0a 23 20 31 2e 20 52 65 | 6d 6f 76 65 20 65 76 65 |.# 1. Re|move eve|
|00000550| 72 79 74 68 69 6e 67 20 | 61 62 6f 76 65 20 74 68 |rything |above th|
|00000560| 65 20 23 21 20 2f 62 69 | 6e 2f 73 68 20 6c 69 6e |e #! /bi|n/sh lin|
|00000570| 65 2e 0a 23 20 32 2e 20 | 53 61 76 65 20 74 68 65 |e..# 2. |Save the|
|00000580| 20 72 65 73 75 6c 74 69 | 6e 67 20 74 65 78 74 20 | resulti|ng text |
|00000590| 69 6e 20 61 20 66 69 6c | 65 2e 0a 23 20 33 2e 20 |in a fil|e..# 3. |
|000005a0| 45 78 65 63 75 74 65 20 | 74 68 65 20 66 69 6c 65 |Execute |the file|
|000005b0| 20 77 69 74 68 20 2f 62 | 69 6e 2f 73 68 20 28 6e | with /b|in/sh (n|
|000005c0| 6f 74 20 63 73 68 29 20 | 74 6f 20 63 72 65 61 74 |ot csh) |to creat|
|000005d0| 65 20 74 68 65 20 66 69 | 6c 65 73 3a 0a 23 09 63 |e the fi|les:.#.c|
|000005e0| 61 74 73 69 67 0a 23 09 | 74 69 6d 65 6d 6f 64 2e |atsig.#.|timemod.|
|000005f0| 63 0a 23 20 54 68 69 73 | 20 61 72 63 68 69 76 65 |c.# This| archive|
|00000600| 20 63 72 65 61 74 65 64 | 3a 20 53 75 6e 20 4a 75 | created|: Sun Ju|
|00000610| 6c 20 20 38 20 31 37 3a | 30 32 3a 32 38 20 31 39 |l 8 17:|02:28 19|
|00000620| 39 30 0a 65 78 70 6f 72 | 74 20 50 41 54 48 3b 20 |90.expor|t PATH; |
|00000630| 50 41 54 48 3d 2f 62 69 | 6e 3a 24 50 41 54 48 0a |PATH=/bi|n:$PATH.|
|00000640| 65 63 68 6f 20 73 68 61 | 72 3a 20 65 78 74 72 61 |echo sha|r: extra|
|00000650| 63 74 69 6e 67 20 22 27 | 63 61 74 73 69 67 27 22 |cting "'|catsig'"|
|00000660| 20 27 28 32 33 30 38 20 | 63 68 61 72 61 63 74 65 | '(2308 |characte|
|00000670| 72 73 29 27 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |rs)'.if |test -f |
|00000680| 27 63 61 74 73 69 67 27 | 0a 74 68 65 6e 0a 20 20 |'catsig'|.then. |
|00000690| 20 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 | ech|o shar: |
|000006a0| 77 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 2d 77 72 |will not| over-wr|
|000006b0| 69 74 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ite exis|ting fil|
|000006c0| 65 20 22 27 63 61 74 73 | 69 67 27 22 0a 65 6c 73 |e "'cats|ig'".els|
|000006d0| 65 0a 73 65 64 20 27 73 | 2f 5e 58 58 2f 2f 27 20 |e.sed 's|/^XX//' |
|000006e0| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 27 |<< \SHAR|_EOF > '|
|000006f0| 63 61 74 73 69 67 27 0a | 58 58 23 21 20 2f 62 69 |catsig'.|XX#! /bi|
|00000700| 6e 2f 63 73 68 0a 58 58 | 23 0a 58 58 23 20 20 20 |n/csh.XX|#.XX# |
|00000710| 63 73 68 20 73 63 72 69 | 70 74 20 70 72 6f 67 72 |csh scri|pt progr|
|00000720| 61 6d 20 22 63 61 74 73 | 69 67 22 2c 20 43 6f 70 |am "cats|ig", Cop|
|00000730| 79 72 69 67 68 74 20 31 | 39 39 30 20 62 79 20 4b |yright 1|990 by K|
|00000740| 65 6e 74 20 50 61 75 6c | 20 44 6f 6c 61 6e 2c 20 |ent Paul| Dolan, |
|00000750| 39 34 30 33 39 2d 30 37 | 35 35 2e 0a 58 58 23 0a |94039-07|55..XX#.|
|00000760| 58 58 23 20 20 20 54 68 | 65 20 70 75 72 70 6f 73 |XX# Th|e purpos|
|00000770| 65 20 6f 66 20 63 61 74 | 73 69 67 20 69 73 20 74 |e of cat|sig is t|
|00000780| 6f 20 61 64 64 20 74 6f | 20 74 68 65 20 65 6e 64 |o add to| the end|
|00000790| 20 6f 66 20 61 20 6c 65 | 74 74 65 72 20 6f 72 20 | of a le|tter or |
|000007a0| 6e 65 77 73 20 61 72 74 | 69 63 6c 65 0a 58 58 23 |news art|icle.XX#|
|000007b0| 20 20 20 28 66 72 6f 6d | 20 74 68 65 20 65 64 69 | (from| the edi|
|000007c0| 74 6f 72 29 20 61 20 73 | 69 67 6e 61 74 75 72 65 |tor) a s|ignature|
|000007d0| 20 62 6c 6f 63 6b 20 63 | 6f 6e 73 69 73 74 69 6e | block c|onsistin|
|000007e0| 67 20 6f 66 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |g of the| content|
|000007f0| 73 20 6f 66 0a 58 58 23 | 20 20 20 68 6f 6d 65 20 |s of.XX#| home |
|00000800| 64 69 72 65 63 74 6f 72 | 79 20 66 69 6c 65 20 22 |director|y file "|
|00000810| 2e 73 69 67 67 69 65 22 | 2c 20 61 6e 64 20 74 68 |.siggie"|, and th|
|00000820| 65 20 63 6f 6e 74 65 6e | 74 73 20 6f 66 20 61 20 |e conten|ts of a |
|00000830| 22 72 61 6e 64 6f 6d 22 | 20 6d 65 6d 62 65 72 20 |"random"| member |
|00000840| 6f 66 0a 58 58 23 20 20 | 20 61 20 6c 69 73 74 20 |of.XX# | a list |
|00000850| 6f 66 20 68 6f 6d 65 20 | 64 69 72 65 63 74 6f 72 |of home |director|
|00000860| 79 20 66 69 6c 65 73 20 | 77 69 74 68 20 6e 61 6d |y files |with nam|
|00000870| 65 73 20 6f 66 20 74 68 | 65 20 66 6f 72 6d 20 22 |es of th|e form "|
|00000880| 2e 73 69 67 5b 30 2d 39 | 5d 2a 22 2e 20 20 54 68 |.sig[0-9|]*". Th|
|00000890| 65 0a 58 58 23 20 20 20 | 2e 73 69 67 5b 30 2d 39 |e.XX# |.sig[0-9|
|000008a0| 5d 2a 20 66 69 6c 65 20 | 6e 61 6d 65 73 20 64 6f |]* file |names do|
|000008b0| 20 6e 6f 74 20 68 61 76 | 65 20 74 6f 20 62 65 20 | not hav|e to be |
|000008c0| 73 65 71 75 65 6e 74 69 | 61 6c 6c 79 20 6e 75 6d |sequenti|ally num|
|000008d0| 62 65 72 65 64 2e 0a 58 | 58 23 0a 58 58 23 20 20 |bered..X|X#.XX# |
|000008e0| 20 55 73 65 73 3a 20 20 | 66 72 6f 6d 20 77 69 74 | Uses: |from wit|
|000008f0| 68 69 6e 20 6d 61 69 6c | 2c 20 73 61 79 20 22 7e |hin mail|, say "~|
|00000900| 72 20 21 63 61 74 73 69 | 67 22 3b 20 66 72 6f 6d |r !catsi|g"; from|
|00000910| 20 77 69 74 68 69 6e 20 | 76 69 2c 20 73 61 79 0a | within |vi, say.|
|00000920| 58 58 23 20 20 20 22 3a | 72 20 21 63 61 74 73 69 |XX# ":|r !catsi|
|00000930| 67 22 2e 20 20 45 78 65 | 63 75 74 61 62 6c 65 73 |g". Exe|cutables|
|00000940| 20 22 63 61 74 73 69 67 | 22 20 61 6e 64 20 22 74 | "catsig|" and "t|
|00000950| 69 6d 65 6d 6f 64 22 20 | 6d 75 73 74 20 62 65 20 |imemod" |must be |
|00000960| 69 6e 20 79 6f 75 72 0a | 58 58 23 20 20 20 65 78 |in your.|XX# ex|
|00000970| 65 63 75 74 61 62 6c 65 | 20 66 69 6c 65 20 70 61 |ecutable| file pa|
|00000980| 74 68 20 6c 69 73 74 2e | 0a 58 58 23 0a 58 58 23 |th list.|.XX#.XX#|
|00000990| 20 20 20 63 61 74 73 69 | 67 20 75 73 65 73 20 74 | catsi|g uses t|
|000009a0| 77 6f 20 61 75 78 69 6c | 69 61 72 79 20 66 69 6c |wo auxil|iary fil|
|000009b0| 65 73 20 69 6e 20 74 68 | 65 20 68 6f 6d 65 20 64 |es in th|e home d|
|000009c0| 69 72 65 63 74 6f 72 79 | 2c 20 2e 73 69 67 74 65 |irectory|, .sigte|
|000009d0| 6d 70 20 61 6e 64 0a 58 | 58 23 20 20 20 2e 73 69 |mp and.X|X# .si|
|000009e0| 67 70 69 63 6b 2c 20 73 | 65 74 73 20 61 20 63 73 |gpick, s|ets a cs|
|000009f0| 68 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 61 6c 20 |h enviro|nmental |
|00000a00| 76 61 72 69 61 62 6c 65 | 20 53 49 47 50 49 43 4b |variable| SIGPICK|
|00000a10| 2c 20 61 6e 64 20 72 65 | 71 75 69 72 65 73 20 0a |, and re|quires .|
|00000a20| 58 58 23 20 20 20 61 74 | 20 6c 65 61 73 74 20 74 |XX# at| least t|
|00000a30| 68 65 20 6f 6c 64 20 76 | 65 72 73 69 6f 6e 20 6f |he old v|ersion o|
|00000a40| 66 20 22 61 77 6b 22 2c | 20 61 6e 64 20 70 72 6f |f "awk",| and pro|
|00000a50| 67 72 61 6d 20 22 74 69 | 6d 65 6d 6f 64 22 62 79 |gram "ti|memod"by|
|00000a60| 20 74 68 65 20 63 75 72 | 72 65 6e 74 0a 58 58 23 | the cur|rent.XX#|
|00000a70| 20 20 20 61 75 74 68 6f | 72 2c 20 64 69 73 74 72 | autho|r, distr|
|00000a80| 69 62 75 74 65 64 20 77 | 69 74 68 20 74 68 69 73 |ibuted w|ith this|
|00000a90| 20 70 72 6f 67 72 61 6d | 2e 0a 58 58 23 0a 58 58 | program|..XX#.XX|
|00000aa0| 23 20 20 20 50 65 72 6d | 69 73 73 69 6f 6e 20 74 |# Perm|ission t|
|00000ab0| 6f 20 75 73 65 20 61 6e | 64 20 64 69 73 73 65 6d |o use an|d dissem|
|00000ac0| 69 6e 61 74 65 20 74 68 | 69 73 20 66 69 6c 65 20 |inate th|is file |
|00000ad0| 66 6f 72 20 61 6e 79 20 | 75 73 65 2c 20 65 78 63 |for any |use, exc|
|00000ae0| 65 70 74 20 73 61 6c 65 | 20 61 73 0a 58 58 23 20 |ept sale| as.XX# |
|00000af0| 20 20 70 61 72 74 20 6f | 66 20 61 20 63 6f 6d 6d | part o|f a comm|
|00000b00| 65 72 63 69 61 6c 20 70 | 72 6f 64 75 63 74 2c 20 |ercial p|roduct, |
|00000b10| 73 6f 20 6c 6f 6e 67 20 | 61 73 20 74 68 69 73 20 |so long |as this |
|00000b20| 68 65 61 64 65 72 20 72 | 65 6d 61 69 6e 73 20 69 |header r|emains i|
|00000b30| 6e 74 61 63 74 2c 20 69 | 73 0a 58 58 23 20 20 20 |ntact, i|s.XX# |
|00000b40| 68 65 72 65 62 79 20 67 | 72 61 6e 74 65 64 20 62 |hereby g|ranted b|
|00000b50| 79 20 74 68 65 20 61 75 | 74 68 6f 72 2e 20 20 41 |y the au|thor. A|
|00000b60| 73 20 66 6f 72 20 61 6e | 79 20 66 72 65 65 20 73 |s for an|y free s|
|00000b70| 6f 66 74 77 61 72 65 2c | 20 74 68 69 73 20 63 6f |oftware,| this co|
|00000b80| 6d 65 73 20 77 69 74 68 | 0a 58 58 23 20 20 20 6e |mes with|.XX# n|
|00000b90| 6f 20 67 75 61 72 61 6e | 74 65 65 73 20 6f 66 20 |o guaran|tees of |
|00000ba0| 75 73 65 61 62 6c 69 74 | 79 2e 20 20 22 49 74 20 |useablit|y. "It |
|00000bb0| 77 6f 72 6b 65 64 20 66 | 6f 72 20 6d 65 21 22 0a |worked f|or me!".|
|00000bc0| 58 58 23 0a 58 58 23 20 | 20 20 57 72 69 74 65 20 |XX#.XX# | Write |
|00000bd0| 66 69 6c 65 20 2e 73 69 | 67 67 69 65 20 74 6f 20 |file .si|ggie to |
|00000be0| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 6f 75 74 |the stan|dard out|
|00000bf0| 70 75 74 2e 0a 58 58 23 | 0a 58 58 63 61 74 20 7e |put..XX#|.XXcat ~|
|00000c00| 2f 2e 73 69 67 67 69 65 | 0a 58 58 23 0a 58 58 23 |/.siggie|.XX#.XX#|
|00000c10| 20 20 20 53 65 70 61 72 | 61 74 65 20 69 74 20 66 | Separ|ate it f|
|00000c20| 72 6f 6d 20 74 68 65 20 | 72 61 6e 64 6f 6d 20 7e |rom the |random ~|
|00000c30| 2f 2e 73 69 67 5b 30 2d | 39 5d 2a 20 66 69 6c 65 |/.sig[0-|9]* file|
|00000c40| 20 77 69 74 68 20 74 68 | 65 20 75 73 75 61 6c 20 | with th|e usual |
|00000c50| 22 2d 2d 22 20 61 6c 6f | 6e 65 0a 58 58 23 20 20 |"--" alo|ne.XX# |
|00000c60| 20 6f 6e 20 61 20 6c 69 | 6e 65 2c 20 77 72 69 74 | on a li|ne, writ|
|00000c70| 74 65 6e 20 74 6f 20 74 | 68 65 20 73 74 61 6e 64 |ten to t|he stand|
|00000c80| 61 72 64 20 6f 75 74 70 | 75 74 2e 0a 58 58 23 0a |ard outp|ut..XX#.|
|00000c90| 58 58 65 63 68 6f 20 22 | 2d 2d 22 0a 58 58 23 0a |XXecho "|--".XX#.|
|00000ca0| 58 58 23 20 20 20 49 6e | 76 65 6e 74 6f 72 79 20 |XX# In|ventory |
|00000cb0| 74 68 65 20 66 69 6c 65 | 73 20 77 69 74 68 20 6e |the file|s with n|
|00000cc0| 61 6d 65 73 20 6f 66 20 | 66 6f 72 6d 61 74 20 2e |ames of |format .|
|00000cd0| 73 69 67 5b 30 2d 39 5d | 2a 20 69 6e 74 6f 20 66 |sig[0-9]|* into f|
|00000ce0| 69 6c 65 20 7e 2f 2e 73 | 69 67 74 65 6d 70 2e 0a |ile ~/.s|igtemp..|
|00000cf0| 58 58 23 0a 58 58 6c 73 | 20 7e 2f 2e 73 69 67 5b |XX#.XXls| ~/.sig[|
|00000d00| 30 2d 39 5d 2a 20 3e 20 | 7e 2f 2e 73 69 67 74 65 |0-9]* > |~/.sigte|
|00000d10| 6d 70 0a 58 58 23 0a 58 | 58 23 20 20 20 55 73 65 |mp.XX#.X|X# Use|
|00000d20| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6c | the num|ber of l|
|00000d30| 69 6e 65 73 20 69 6e 20 | 7e 2f 73 69 67 74 65 6d |ines in |~/sigtem|
|00000d40| 70 20 61 73 20 61 20 63 | 6f 75 6e 74 20 6f 66 20 |p as a c|ount of |
|00000d50| 74 68 65 20 2e 73 69 67 | 5b 30 2d 39 5d 2a 20 66 |the .sig|[0-9]* f|
|00000d60| 69 6c 65 73 2c 0a 58 58 | 23 20 20 20 61 6e 64 20 |iles,.XX|# and |
|00000d70| 68 61 6e 64 20 74 68 61 | 74 20 63 6f 75 6e 74 20 |hand tha|t count |
|00000d80| 74 6f 20 22 74 69 6d 65 | 6d 6f 64 22 20 74 6f 20 |to "time|mod" to |
|00000d90| 67 65 74 20 62 61 63 6b | 20 61 20 72 61 6e 64 6f |get back| a rando|
|00000da0| 6d 20 6e 75 6d 62 65 72 | 20 66 72 6f 6d 20 31 20 |m number| from 1 |
|00000db0| 74 6f 0a 58 58 23 20 20 | 20 74 68 61 74 20 63 6f |to.XX# | that co|
|00000dc0| 75 6e 74 2e 20 20 53 74 | 6f 72 65 20 74 68 61 74 |unt. St|ore that|
|00000dd0| 20 6e 75 6d 62 65 72 20 | 69 6e 20 65 6e 76 72 6f | number |in envro|
|00000de0| 6e 6d 65 6e 74 61 6c 20 | 76 61 72 69 61 62 6c 65 |nmental |variable|
|00000df0| 20 53 49 47 50 49 43 4b | 2e 0a 58 58 23 0a 58 58 | SIGPICK|..XX#.XX|
|00000e00| 73 65 74 65 6e 76 20 53 | 49 47 50 49 43 4b 20 60 |setenv S|IGPICK `|
|00000e10| 77 63 20 2d 6c 20 7e 2f | 2e 73 69 67 74 65 6d 70 |wc -l ~/|.sigtemp|
|00000e20| 20 7c 20 74 69 6d 65 6d | 6f 64 60 0a 58 58 23 0a | | timem|od`.XX#.|
|00000e30| 58 58 23 20 20 20 43 72 | 65 61 74 65 20 61 20 6f |XX# Cr|eate a o|
|00000e40| 6e 65 20 6c 69 6e 65 20 | 61 77 6b 20 70 72 6f 67 |ne line |awk prog|
|00000e50| 72 61 6d 20 74 6f 20 70 | 69 63 6b 20 74 68 65 20 |ram to p|ick the |
|00000e60| 6c 69 6e 65 20 77 69 74 | 68 20 74 68 69 73 20 6c |line wit|h this l|
|00000e70| 69 6e 65 20 6e 75 6d 62 | 65 72 20 66 72 6f 6d 0a |ine numb|er from.|
|00000e80| 58 58 23 20 20 20 2e 73 | 69 67 74 65 6d 70 2e 20 |XX# .s|igtemp. |
|00000e90| 20 5b 43 61 6e 20 79 6f | 75 20 67 75 65 73 73 20 | [Can yo|u guess |
|00000ea0| 74 68 61 74 20 6d 79 20 | 73 79 73 74 65 6d 20 64 |that my |system d|
|00000eb0| 6f 65 73 6e 27 74 20 73 | 75 70 70 6f 72 74 20 22 |oesn't s|upport "|
|00000ec0| 68 65 61 64 22 3f 20 20 | 3b 2d 29 5d 0a 58 58 23 |head"? |;-)].XX#|
|00000ed0| 0a 58 58 65 63 68 6f 20 | 22 4e 52 3d 3d 24 53 49 |.XXecho |"NR==$SI|
|00000ee0| 47 50 49 43 4b 20 7b 70 | 72 69 6e 74 7d 22 20 3e |GPICK {p|rint}" >|
|00000ef0| 20 7e 2f 2e 73 69 67 70 | 69 63 6b 0a 58 58 23 0a | ~/.sigp|ick.XX#.|
|00000f00| 58 58 23 20 20 20 55 73 | 65 20 61 77 6b 20 74 6f |XX# Us|e awk to|
|00000f10| 20 64 75 6d 70 20 74 68 | 69 73 20 66 69 6c 65 20 | dump th|is file |
|00000f20| 6e 61 6d 65 20 69 6e 74 | 6f 20 61 20 63 61 74 20 |name int|o a cat |
|00000f30| 63 6f 6d 6d 61 6e 64 27 | 73 20 66 69 6c 65 20 6c |command'|s file l|
|00000f40| 69 73 74 2c 20 61 6e 64 | 20 75 73 65 20 74 68 69 |ist, and| use thi|
|00000f50| 73 0a 58 58 23 20 20 20 | 63 61 74 20 63 6f 6d 6d |s.XX# |cat comm|
|00000f60| 61 6e 64 20 69 6e 20 74 | 75 72 6e 20 74 6f 20 63 |and in t|urn to c|
|00000f70| 6f 70 79 20 74 68 65 20 | 72 61 6e 64 6f 6d 20 2e |opy the |random .|
|00000f80| 73 69 67 5b 30 2d 39 5d | 2a 20 74 6f 20 74 68 65 |sig[0-9]|* to the|
|00000f90| 20 73 74 61 6e 64 61 72 | 64 20 6f 75 74 70 75 74 | standar|d output|
|00000fa0| 2e 0a 58 58 23 0a 58 58 | 63 61 74 20 60 61 77 6b |..XX#.XX|cat `awk|
|00000fb0| 20 2d 66 20 7e 2f 2e 73 | 69 67 70 69 63 6b 20 7e | -f ~/.s|igpick ~|
|00000fc0| 2f 2e 73 69 67 74 65 6d | 70 60 0a 58 58 23 0a 58 |/.sigtem|p`.XX#.X|
|00000fd0| 58 23 20 20 20 54 68 61 | 74 27 73 20 69 74 2e 20 |X# Tha|t's it. |
|00000fe0| 20 53 6c 6f 77 20 61 73 | 20 6d 6f 6c 61 73 73 65 | Slow as| molasse|
|00000ff0| 73 20 61 6e 64 20 75 67 | 6c 79 20 61 73 20 73 69 |s and ug|ly as si|
|00001000| 6e 2c 20 62 75 74 20 69 | 74 20 77 6f 72 6b 73 2e |n, but i|t works.|
|00001010| 20 20 53 6f 72 72 79 20 | 74 6f 20 75 73 65 0a 58 | Sorry |to use.X|
|00001020| 58 23 20 20 20 63 73 68 | 20 69 6e 73 74 65 61 64 |X# csh| instead|
|00001030| 20 6f 66 20 73 68 2c 20 | 62 75 74 20 70 65 72 68 | of sh, |but perh|
|00001040| 61 70 73 20 73 6f 6d 65 | 20 6b 69 6e 64 20 70 65 |aps some| kind pe|
|00001050| 72 73 6f 6e 20 77 69 6c | 6c 20 74 72 61 6e 73 6c |rson wil|l transl|
|00001060| 61 74 65 20 74 68 69 73 | 2e 0a 53 48 41 52 5f 45 |ate this|..SHAR_E|
|00001070| 4f 46 0a 69 66 20 74 65 | 73 74 20 32 33 30 38 20 |OF.if te|st 2308 |
|00001080| 2d 6e 65 20 22 60 77 63 | 20 2d 63 20 3c 20 27 63 |-ne "`wc| -c < 'c|
|00001090| 61 74 73 69 67 27 60 22 | 0a 74 68 65 6e 0a 20 20 |atsig'`"|.then. |
|000010a0| 20 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 | ech|o shar: |
|000010b0| 65 72 72 6f 72 20 74 72 | 61 6e 73 6d 69 74 74 69 |error tr|ansmitti|
|000010c0| 6e 67 20 22 27 63 61 74 | 73 69 67 27 22 20 27 28 |ng "'cat|sig'" '(|
|000010d0| 73 68 6f 75 6c 64 20 68 | 61 76 65 20 62 65 65 6e |should h|ave been|
|000010e0| 20 32 33 30 38 20 63 68 | 61 72 61 63 74 65 72 73 | 2308 ch|aracters|
|000010f0| 29 27 0a 66 69 0a 63 68 | 6d 6f 64 20 2b 78 20 27 |)'.fi.ch|mod +x '|
|00001100| 63 61 74 73 69 67 27 0a | 66 69 20 23 20 65 6e 64 |catsig'.|fi # end|
|00001110| 20 6f 66 20 6f 76 65 72 | 77 72 69 74 69 6e 67 20 | of over|writing |
|00001120| 63 68 65 63 6b 0a 65 63 | 68 6f 20 73 68 61 72 3a |check.ec|ho shar:|
|00001130| 20 65 78 74 72 61 63 74 | 69 6e 67 20 22 27 74 69 | extract|ing "'ti|
|00001140| 6d 65 6d 6f 64 2e 63 27 | 22 20 27 28 31 35 36 38 |memod.c'|" '(1568|
|00001150| 20 63 68 61 72 61 63 74 | 65 72 73 29 27 0a 69 66 | charact|ers)'.if|
|00001160| 20 74 65 73 74 20 2d 66 | 20 27 74 69 6d 65 6d 6f | test -f| 'timemo|
|00001170| 64 2e 63 27 0a 74 68 65 | 6e 0a 20 20 20 20 20 20 |d.c'.the|n. |
|00001180| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 77 69 6c 6c | echo sh|ar: will|
|00001190| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|000011a0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 22 27 |existing| file "'|
|000011b0| 74 69 6d 65 6d 6f 64 2e | 63 27 22 0a 65 6c 73 65 |timemod.|c'".else|
|000011c0| 0a 73 65 64 20 27 73 2f | 5e 58 58 2f 2f 27 20 3c |.sed 's/|^XX//' <|
|000011d0| 3c 20 5c 53 48 41 52 5f | 45 4f 46 20 3e 20 27 74 |< \SHAR_|EOF > 't|
|000011e0| 69 6d 65 6d 6f 64 2e 63 | 27 0a 58 58 2f 2a 0a 58 |imemod.c|'.XX/*.X|
|000011f0| 58 20 20 20 20 74 69 6d | 65 6d 6f 64 2e 63 20 2d |X tim|emod.c -|
|00001200| 2d 20 43 6f 70 79 72 69 | 67 68 74 20 31 39 39 30 |- Copyri|ght 1990|
|00001210| 20 4b 65 6e 74 20 50 61 | 75 6c 20 44 6f 6c 61 6e | Kent Pa|ul Dolan|
|00001220| 2c 20 4d 6f 75 6e 74 61 | 69 6e 20 56 69 65 77 2c |, Mounta|in View,|
|00001230| 20 43 41 20 39 34 30 33 | 39 2d 30 37 35 35 2e 0a | CA 9403|9-0755..|
|00001240| 58 58 0a 58 58 20 20 20 | 20 4d 61 69 6e 20 70 72 |XX.XX | Main pr|
|00001250| 6f 67 72 61 6d 20 74 69 | 6d 65 6d 6f 64 20 61 63 |ogram ti|memod ac|
|00001260| 63 65 70 74 73 20 61 20 | 73 74 72 69 63 74 6c 79 |cepts a |strictly|
|00001270| 20 70 6f 73 69 74 69 76 | 65 20 28 6c 6f 6e 67 29 | positiv|e (long)|
|00001280| 20 69 6e 74 65 67 65 72 | 20 66 72 6f 6d 0a 58 58 | integer| from.XX|
|00001290| 20 20 20 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 | the |standard|
|000012a0| 20 69 6e 70 75 74 2e 20 | 20 45 72 72 6f 72 20 63 | input. | Error c|
|000012b0| 68 65 63 6b 69 6e 67 20 | 69 73 20 6e 6f 74 20 70 |hecking |is not p|
|000012c0| 65 72 66 6f 72 6d 65 64 | 20 6f 6e 20 74 68 65 20 |erformed| on the |
|000012d0| 69 6e 70 75 74 2e 0a 58 | 58 0a 58 58 20 20 20 20 |input..X|X.XX |
|000012e0| 49 74 20 75 73 65 73 20 | 74 68 69 73 20 69 6e 74 |It uses |this int|
|000012f0| 65 67 65 72 20 61 73 20 | 61 20 6d 6f 64 75 6c 75 |eger as |a modulu|
|00001300| 73 20 62 61 73 65 20 4d | 4f 44 2e 0a 58 58 0a 58 |s base M|OD..XX.X|
|00001310| 58 20 20 20 20 55 73 69 | 6e 67 20 74 68 65 20 73 |X Usi|ng the s|
|00001320| 79 73 74 65 6d 20 74 69 | 6d 65 20 69 6e 20 73 65 |ystem ti|me in se|
|00001330| 63 6f 6e 64 73 20 66 72 | 6f 6d 20 74 69 6d 65 28 |conds fr|om time(|
|00001340| 33 66 29 2c 20 69 74 20 | 70 65 72 66 6f 72 6d 73 |3f), it |performs|
|00001350| 20 74 68 65 20 6c 6f 6e | 67 0a 58 58 20 20 20 20 | the lon|g.XX |
|00001360| 69 6e 74 65 67 65 72 20 | 65 71 75 69 76 61 6c 65 |integer |equivale|
|00001370| 6e 74 20 6f 66 20 22 74 | 69 6d 65 28 29 20 25 20 |nt of "t|ime() % |
|00001380| 4d 4f 44 22 2e 0a 58 58 | 0a 58 58 20 20 20 20 49 |MOD"..XX|.XX I|
|00001390| 74 20 61 64 64 73 20 31 | 20 74 6f 20 74 68 65 20 |t adds 1| to the |
|000013a0| 72 65 73 75 6c 74 20 61 | 6e 64 20 77 72 69 74 65 |result a|nd write|
|000013b0| 73 20 61 20 6e 75 6d 62 | 65 72 20 69 6e 20 74 68 |s a numb|er in th|
|000013c0| 65 20 72 61 6e 67 65 20 | 31 20 74 6f 20 4d 4f 44 |e range |1 to MOD|
|000013d0| 20 74 6f 0a 58 58 20 20 | 20 20 74 68 65 20 73 74 | to.XX | the st|
|000013e0| 61 6e 64 61 72 64 20 6f | 75 74 70 75 74 2e 20 20 |andard o|utput. |
|000013f0| 0a 58 58 0a 58 58 20 20 | 20 20 50 72 6f 67 72 61 |.XX.XX | Progra|
|00001400| 6d 20 74 69 6d 65 6d 6f | 64 20 69 73 20 75 73 65 |m timemo|d is use|
|00001410| 66 75 6c 20 66 6f 72 20 | 70 72 6f 64 75 63 69 6e |ful for |producin|
|00001420| 67 20 73 6d 61 6c 6c 20 | 22 72 61 6e 64 6f 6d 22 |g small |"random"|
|00001430| 20 6e 75 6d 62 65 72 73 | 20 64 75 72 69 6e 67 0a | numbers| during.|
|00001440| 58 58 20 20 20 20 69 6e | 74 65 72 61 63 74 69 76 |XX in|teractiv|
|00001450| 65 20 6f 70 65 72 61 74 | 69 6f 6e 73 2c 20 66 6f |e operat|ions, fo|
|00001460| 72 20 65 78 61 6d 70 6c | 65 20 74 6f 20 63 68 6f |r exampl|e to cho|
|00001470| 6f 73 65 20 61 6e 20 65 | 6c 65 6d 65 6e 74 20 66 |ose an e|lement f|
|00001480| 72 6f 6d 20 61 20 6c 69 | 73 74 0a 58 58 20 20 20 |rom a li|st.XX |
|00001490| 20 62 61 73 65 64 20 6f | 6e 20 74 68 65 20 28 72 | based o|n the (r|
|000014a0| 65 61 73 6f 6e 61 62 6c | 79 29 20 72 61 6e 64 6f |easonabl|y) rando|
|000014b0| 6d 20 74 69 6d 65 20 77 | 68 65 6e 20 74 68 65 20 |m time w|hen the |
|000014c0| 75 73 65 72 20 63 61 6c | 6c 73 20 74 69 6d 65 6d |user cal|ls timem|
|000014d0| 6f 64 2e 0a 58 58 0a 58 | 58 20 20 20 20 54 69 6d |od..XX.X|X Tim|
|000014e0| 65 6d 6f 64 20 72 65 71 | 75 69 72 65 73 20 66 75 |emod req|uires fu|
|000014f0| 6e 63 74 69 6f 6e 20 74 | 69 6d 65 28 33 66 29 2c |nction t|ime(3f),|
|00001500| 20 77 68 69 63 68 20 63 | 61 6e 20 62 65 20 69 6e | which c|an be in|
|00001510| 20 6f 6e 65 20 6f 66 20 | 73 65 76 65 72 61 6c 0a | one of |several.|
|00001520| 58 58 20 20 20 20 6c 69 | 62 72 61 72 69 65 73 20 |XX li|braries |
|00001530| 64 65 70 65 6e 64 69 6e | 67 20 6f 6e 20 74 68 65 |dependin|g on the|
|00001540| 20 73 69 74 65 27 73 20 | 4f 53 20 61 6e 64 20 6c | site's |OS and l|
|00001550| 69 62 72 61 72 69 65 73 | 2e 20 20 41 74 20 74 68 |ibraries|. At th|
|00001560| 65 20 64 65 76 65 6c 6f | 70 65 72 27 73 0a 58 58 |e develo|per's.XX|
|00001570| 20 20 20 20 73 69 74 65 | 2c 20 69 74 20 77 61 73 | site|, it was|
|00001580| 20 66 6f 75 6e 64 20 69 | 6e 20 2f 75 73 72 2f 6c | found i|n /usr/l|
|00001590| 69 62 2f 6c 69 62 63 2d | 6e 6f 66 70 2e 61 2c 20 |ib/libc-|nofp.a, |
|000015a0| 61 6e 64 20 74 68 69 73 | 20 70 72 6f 67 72 61 6d |and this| program|
|000015b0| 20 77 61 73 0a 58 58 20 | 20 20 20 63 6f 6d 70 69 | was.XX | compi|
|000015c0| 6c 65 64 20 75 73 69 6e | 67 20 22 63 63 20 2d 6f |led usin|g "cc -o|
|000015d0| 20 74 69 6d 65 6d 6f 64 | 20 74 69 6d 65 6d 6f 64 | timemod| timemod|
|000015e0| 2e 63 20 2d 6c 63 2d 6e | 6f 66 70 22 2e 0a 58 58 |.c -lc-n|ofp"..XX|
|000015f0| 0a 58 58 20 20 20 20 50 | 65 72 6d 69 73 73 69 6f |.XX P|ermissio|
|00001600| 6e 20 74 6f 20 75 73 65 | 20 74 68 69 73 20 70 72 |n to use| this pr|
|00001610| 6f 67 72 61 6d 20 66 6f | 72 20 61 6e 79 20 70 75 |ogram fo|r any pu|
|00001620| 72 70 6f 73 65 20 65 78 | 63 65 70 74 20 73 61 6c |rpose ex|cept sal|
|00001630| 65 20 61 73 20 70 61 72 | 74 20 6f 66 0a 58 58 20 |e as par|t of.XX |
|00001640| 20 20 20 61 20 63 6f 6d | 6d 65 72 63 69 61 6c 20 | a com|mercial |
|00001650| 70 72 6f 64 75 63 74 2c | 20 61 6e 64 20 74 6f 20 |product,| and to |
|00001660| 64 69 73 73 65 6d 69 6e | 61 74 65 20 69 74 20 73 |dissemin|ate it s|
|00001670| 6f 20 6c 6f 6e 67 20 61 | 73 20 74 68 65 20 73 6f |o long a|s the so|
|00001680| 75 72 63 65 0a 58 58 20 | 20 20 20 69 6e 63 6c 75 |urce.XX | inclu|
|00001690| 64 69 6e 67 20 74 68 69 | 73 20 63 72 65 64 69 74 |ding thi|s credit|
|000016a0| 20 63 6f 6d 6d 65 6e 74 | 20 69 73 20 69 6e 63 6c | comment| is incl|
|000016b0| 75 64 65 64 20 77 69 74 | 68 20 74 68 65 20 65 78 |uded wit|h the ex|
|000016c0| 65 63 75 74 61 62 6c 65 | 2c 20 69 73 0a 58 58 20 |ecutable|, is.XX |
|000016d0| 20 20 20 68 65 72 65 62 | 79 20 67 72 61 6e 74 65 | hereb|y grante|
|000016e0| 64 20 62 79 20 74 68 65 | 20 61 75 74 68 6f 72 2e |d by the| author.|
|000016f0| 0a 58 58 0a 58 58 20 20 | 20 20 41 73 20 75 73 75 |.XX.XX | As usu|
|00001700| 61 6c 2c 20 74 68 69 73 | 20 66 72 65 65 20 73 6f |al, this| free so|
|00001710| 66 74 77 61 72 65 20 63 | 6f 6d 65 73 20 77 69 74 |ftware c|omes wit|
|00001720| 68 20 6e 6f 20 67 75 61 | 72 61 6e 74 65 65 73 20 |h no gua|rantees |
|00001730| 6f 66 20 75 73 65 61 62 | 69 6c 69 74 79 2c 20 6e |of useab|ility, n|
|00001740| 6f 72 0a 58 58 20 20 20 | 20 64 6f 65 73 20 74 68 |or.XX | does th|
|00001750| 65 20 61 75 74 68 6f 72 | 20 61 63 63 65 70 74 20 |e author| accept |
|00001760| 61 6e 79 20 6c 69 61 62 | 69 6c 69 74 79 20 66 6f |any liab|ility fo|
|00001770| 72 20 69 74 73 20 75 73 | 65 20 62 79 20 6f 74 68 |r its us|e by oth|
|00001780| 65 72 73 2e 0a 58 58 0a | 58 58 2a 2f 0a 58 58 0a |ers..XX.|XX*/.XX.|
|00001790| 58 58 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 64 69 |XX#inclu|de <stdi|
|000017a0| 6f 2e 68 3e 0a 58 58 0a | 58 58 6d 61 69 6e 20 28 |o.h>.XX.|XXmain (|
|000017b0| 29 0a 58 58 7b 0a 58 58 | 20 20 6c 6f 6e 67 20 63 |).XX{.XX| long c|
|000017c0| 6f 75 6e 74 2c 74 69 6d | 65 68 6f 6c 64 2c 74 65 |ount,tim|ehold,te|
|000017d0| 6d 70 3b 0a 58 58 20 20 | 73 63 61 6e 66 28 22 25 |mp;.XX |scanf("%|
|000017e0| 6c 64 22 2c 26 63 6f 75 | 6e 74 29 3b 0a 58 58 20 |ld",&cou|nt);.XX |
|000017f0| 20 74 69 6d 65 68 6f 6c | 64 20 3d 20 74 69 6d 65 | timehol|d = time|
|00001800| 28 29 3b 0a 58 58 20 20 | 74 65 6d 70 20 3d 20 74 |();.XX |temp = t|
|00001810| 69 6d 65 68 6f 6c 64 2f | 63 6f 75 6e 74 3b 0a 58 |imehold/|count;.X|
|00001820| 58 20 20 70 72 69 6e 74 | 66 28 22 25 6c 64 5c 6e |X print|f("%ld\n|
|00001830| 22 2c 74 69 6d 65 68 6f | 6c 64 20 2d 20 28 74 65 |",timeho|ld - (te|
|00001840| 6d 70 2a 63 6f 75 6e 74 | 29 20 2b 20 31 29 3b 0a |mp*count|) + 1);.|
|00001850| 58 58 20 20 65 78 69 74 | 20 28 30 29 3b 0a 58 58 |XX exit| (0);.XX|
|00001860| 7d 0a 53 48 41 52 5f 45 | 4f 46 0a 69 66 20 74 65 |}.SHAR_E|OF.if te|
|00001870| 73 74 20 31 35 36 38 20 | 2d 6e 65 20 22 60 77 63 |st 1568 |-ne "`wc|
|00001880| 20 2d 63 20 3c 20 27 74 | 69 6d 65 6d 6f 64 2e 63 | -c < 't|imemod.c|
|00001890| 27 60 22 0a 74 68 65 6e | 0a 20 20 20 20 20 20 20 |'`".then|. |
|000018a0| 65 63 68 6f 20 73 68 61 | 72 3a 20 65 72 72 6f 72 |echo sha|r: error|
|000018b0| 20 74 72 61 6e 73 6d 69 | 74 74 69 6e 67 20 22 27 | transmi|tting "'|
|000018c0| 74 69 6d 65 6d 6f 64 2e | 63 27 22 20 27 28 73 68 |timemod.|c'" '(sh|
|000018d0| 6f 75 6c 64 20 68 61 76 | 65 20 62 65 65 6e 20 31 |ould hav|e been 1|
|000018e0| 35 36 38 20 63 68 61 72 | 61 63 74 65 72 73 29 27 |568 char|acters)'|
|000018f0| 0a 66 69 0a 66 69 20 23 | 20 65 6e 64 20 6f 66 20 |.fi.fi #| end of |
|00001900| 6f 76 65 72 77 72 69 74 | 69 6e 67 20 63 68 65 63 |overwrit|ing chec|
|00001910| 6b 0a 23 09 45 6e 64 20 | 6f 66 20 73 68 65 6c 6c |k.#.End |of shell|
|00001920| 20 61 72 63 68 69 76 65 | 0a 65 78 69 74 20 30 0a | archive|.exit 0.|
+--------+-------------------------+-------------------------+--------+--------+