home *** CD-ROM | disk | FTP | other *** search
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).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| 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/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 75 75 | 6e 65 74 21 72 73 0a 46 |Path: uu|net!rs.F|
|00000010| 72 6f 6d 3a 20 72 73 40 | 75 75 6e 65 74 2e 55 55 |rom: rs@|uunet.UU|
|00000020| 2e 4e 45 54 20 28 52 69 | 63 68 20 53 61 6c 7a 29 |.NET (Ri|ch Salz)|
|00000030| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|00000040| 70 2e 73 6f 75 72 63 65 | 73 2e 75 6e 69 78 0a 53 |p.source|s.unix.S|
|00000050| 75 62 6a 65 63 74 3a 20 | 76 31 30 69 30 32 30 3a |ubject: |v10i020:|
|00000060| 20 22 4d 69 73 73 69 6e | 67 22 20 73 74 72 70 62 | "Missin|g" strpb|
|00000070| 72 6b 20 66 6f 72 20 34 | 2e 32 42 53 44 20 22 66 |rk for 4|.2BSD "f|
|00000080| 61 73 74 67 72 65 70 22 | 0a 4d 65 73 73 61 67 65 |astgrep"|.Message|
|00000090| 2d 49 44 3a 20 3c 34 34 | 30 40 75 75 6e 65 74 2e |-ID: <44|0@uunet.|
|000000a0| 55 55 2e 4e 45 54 3e 0a | 44 61 74 65 3a 20 32 34 |UU.NET>.|Date: 24|
|000000b0| 20 4a 75 6e 20 38 37 20 | 30 31 3a 31 31 3a 30 32 | Jun 87 |01:11:02|
|000000c0| 20 47 4d 54 0a 4f 72 67 | 61 6e 69 7a 61 74 69 6f | GMT.Org|anizatio|
|000000d0| 6e 3a 20 55 55 4e 45 54 | 20 43 6f 6d 6d 75 6e 69 |n: UUNET| Communi|
|000000e0| 63 61 74 69 6f 6e 73 20 | 53 65 72 76 69 63 65 73 |cations |Services|
|000000f0| 2c 20 41 72 6c 69 6e 67 | 74 6f 6e 2c 20 56 41 0a |, Arling|ton, VA.|
|00000100| 4c 69 6e 65 73 3a 20 36 | 31 0a 41 70 70 72 6f 76 |Lines: 6|1.Approv|
|00000110| 65 64 3a 20 72 73 40 75 | 75 6e 65 74 2e 75 75 2e |ed: rs@u|unet.uu.|
|00000120| 6e 65 74 0a 0a 4d 6f 64 | 2e 73 6f 75 72 63 65 73 |net..Mod|.sources|
|00000130| 3a 20 56 6f 6c 75 6d 65 | 20 31 30 2c 20 4e 75 6d |: Volume| 10, Num|
|00000140| 62 65 72 20 32 30 0a 53 | 75 62 6d 69 74 74 65 64 |ber 20.S|ubmitted|
|00000150| 20 62 79 3a 20 48 61 6c | 20 52 65 6e 64 65 72 20 | by: Hal| Render |
|00000160| 3c 72 65 6e 64 65 72 40 | 62 2e 63 73 2e 75 69 75 |<render@|b.cs.uiu|
|00000170| 63 2e 65 64 75 3e 0a 41 | 72 63 68 69 76 65 2d 4e |c.edu>.A|rchive-N|
|00000180| 61 6d 65 3a 20 66 61 73 | 74 67 72 65 70 2f 50 61 |ame: fas|tgrep/Pa|
|00000190| 74 63 68 31 0a 0a 0a 5b | 20 20 49 66 20 79 6f 75 |tch1...[| If you|
|000001a0| 20 61 72 65 20 72 75 6e | 6e 69 6e 67 20 34 2e 33 | are run|ning 4.3|
|000001b0| 2c 20 53 79 73 74 65 6d | 56 2c 20 6f 72 20 69 66 |, System|V, or if|
|000001c0| 20 79 6f 75 20 68 61 76 | 65 20 48 65 6e 72 79 27 | you hav|e Henry'|
|000001d0| 73 20 73 74 72 69 6e 67 | 0a 20 20 20 6c 69 62 72 |s string|. libr|
|000001e0| 61 72 79 20 70 6f 73 74 | 65 64 20 68 65 72 65 20 |ary post|ed here |
|000001f0| 6c 61 73 74 20 76 6f 6c | 75 6d 65 2c 20 74 68 65 |last vol|ume, the|
|00000200| 6e 20 79 6f 75 20 77 6f | 6e 27 74 20 6e 65 65 64 |n you wo|n't need|
|00000210| 20 74 68 69 73 2e 20 20 | 2d 2d 72 24 20 20 5d 0a | this. |--r$ ].|
|00000220| 0a 54 68 65 20 66 61 73 | 74 67 72 65 70 20 73 6f |.The fas|tgrep so|
|00000230| 75 72 63 65 73 20 49 20 | 67 6f 74 20 77 65 72 65 |urces I |got were|
|00000240| 20 61 70 70 61 72 65 6e | 74 6c 79 20 69 6e 63 6f | apparen|tly inco|
|00000250| 6d 70 6c 65 74 65 2e 20 | 20 54 68 65 20 63 6f 64 |mplete. | The cod|
|00000260| 65 20 69 6e 20 74 68 65 | 0a 66 69 6c 65 20 27 65 |e in the|.file 'e|
|00000270| 67 72 65 70 2e 63 27 20 | 63 61 6c 6c 65 64 20 66 |grep.c' |called f|
|00000280| 6f 72 20 61 20 72 6f 75 | 74 69 6e 65 20 27 73 74 |or a rou|tine 'st|
|00000290| 72 70 62 72 6b 28 73 31 | 2c 20 73 32 29 27 2e 20 |rpbrk(s1|, s2)'. |
|000002a0| 20 49 20 67 75 65 73 73 | 65 64 20 66 72 6f 6d 0a | I guess|ed from.|
|000002b0| 74 68 65 20 63 6f 6e 74 | 65 78 74 20 74 68 61 74 |the cont|ext that|
|000002c0| 20 74 68 65 20 72 6f 75 | 74 69 6e 65 20 6c 6f 6f | the rou|tine loo|
|000002d0| 6b 73 20 66 6f 72 20 6f | 63 63 75 72 72 65 6e 63 |ks for o|ccurrenc|
|000002e0| 65 73 20 6f 66 20 63 68 | 61 72 61 63 74 65 72 73 |es of ch|aracters|
|000002f0| 20 69 6e 20 74 68 65 0a | 73 65 63 6f 6e 64 20 70 | in the.|second p|
|00000300| 61 72 61 6d 65 74 65 72 | 20 73 74 72 69 6e 67 20 |arameter| string |
|00000310| 69 6e 20 74 68 65 20 66 | 69 72 73 74 20 70 61 72 |in the f|irst par|
|00000320| 61 6d 65 74 65 72 20 73 | 74 72 69 6e 67 2c 20 72 |ameter s|tring, r|
|00000330| 65 74 75 72 6e 69 6e 67 | 20 61 20 70 6f 69 6e 74 |eturning| a point|
|00000340| 65 72 0a 74 6f 20 74 68 | 65 20 66 69 72 73 74 20 |er.to th|e first |
|00000350| 6f 63 63 75 72 72 65 6e | 63 65 20 6f 66 20 6f 6e |occurren|ce of on|
|00000360| 65 20 6f 66 20 74 68 65 | 20 63 68 61 72 61 63 74 |e of the| charact|
|00000370| 65 72 73 2e 20 20 41 63 | 63 6f 72 64 69 6e 67 6c |ers. Ac|cordingl|
|00000380| 79 2c 20 49 20 77 72 6f | 74 65 20 61 0a 73 69 6d |y, I wro|te a.sim|
|00000390| 70 6c 65 20 72 6f 75 74 | 69 6e 65 20 74 6f 20 64 |ple rout|ine to d|
|000003a0| 6f 20 74 68 69 73 2e 20 | 20 48 65 72 65 20 69 74 |o this. | Here it|
|000003b0| 20 69 73 2c 20 66 6f 72 | 20 74 68 65 20 62 65 6e | is, for| the ben|
|000003c0| 65 66 69 74 20 6f 66 20 | 77 68 6f 6d 65 76 65 72 |efit of |whomever|
|000003d0| 20 77 61 6e 74 73 20 69 | 74 2e 20 0a 49 20 68 61 | wants i|t. .I ha|
|000003e0| 76 65 20 74 65 73 74 65 | 64 20 74 68 65 20 63 6f |ve teste|d the co|
|000003f0| 6d 70 69 6c 65 64 20 62 | 69 6e 61 72 69 65 73 2c |mpiled b|inaries,|
|00000400| 20 61 6e 64 20 74 68 65 | 79 20 77 6f 72 6b 20 66 | and the|y work f|
|00000410| 69 6e 65 2e 20 20 4e 6f | 74 65 20 74 68 61 74 20 |ine. No|te that |
|00000420| 74 68 65 0a 4d 61 6b 65 | 66 69 6c 65 20 69 6e 63 |the.Make|file inc|
|00000430| 6c 75 64 65 64 20 77 69 | 74 68 20 74 68 65 20 73 |luded wi|th the s|
|00000440| 6f 75 72 63 65 73 20 73 | 68 6f 75 6c 64 20 62 65 |ources s|hould be|
|00000450| 20 63 68 61 6e 67 65 64 | 20 74 6f 20 69 6e 63 6c | changed| to incl|
|00000460| 75 64 65 20 74 68 65 20 | 66 69 6c 65 0a 27 73 74 |ude the |file.'st|
|00000470| 72 70 62 72 6b 2e 6f 27 | 20 61 73 20 6f 6e 65 20 |rpbrk.o'| as one |
|00000480| 6f 66 20 74 68 65 20 66 | 69 6c 65 73 20 61 73 73 |of the f|iles ass|
|00000490| 69 67 6e 65 64 20 74 6f | 20 74 68 65 20 4f 42 4a |igned to| the OBJ|
|000004a0| 20 76 61 72 69 61 62 6c | 65 0a 28 69 2e 65 2e 20 | variabl|e.(i.e. |
|000004b0| 20 27 4f 42 4a 3d 20 73 | 74 72 70 62 72 6b 2e 6f | 'OBJ= s|trpbrk.o|
|000004c0| 20 2e 2e 2e 27 20 73 68 | 6f 75 6c 64 20 62 65 20 | ...' sh|ould be |
|000004d0| 69 6e 20 74 68 65 20 4d | 61 6b 65 66 69 6c 65 29 |in the M|akefile)|
|000004e0| 2e 0a 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|000004f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000500| 20 20 20 20 20 20 48 61 | 6c 20 52 65 6e 64 65 72 | Ha|l Render|
|00000510| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000530| 20 20 20 20 55 6e 69 76 | 65 72 73 69 74 79 20 6f | Univ|ersity o|
|00000540| 66 20 49 6c 6c 69 6e 6f | 69 73 20 61 74 20 55 72 |f Illino|is at Ur|
|00000550| 62 61 6e 61 2d 43 68 61 | 6d 70 61 69 67 6e 0a 20 |bana-Cha|mpaign. |
|00000560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000570| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000580| 20 20 72 65 6e 64 65 72 | 40 62 2e 63 73 2e 75 69 | render|@b.cs.ui|
|00000590| 75 63 2e 65 64 75 20 20 | 20 20 20 20 20 20 20 20 |uc.edu | |
|000005a0| 20 28 41 52 50 41 29 0a | 20 20 20 20 20 20 20 20 | (ARPA).| |
|000005b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005c0| 20 20 20 20 20 20 20 20 | 20 20 20 7b 73 65 69 73 | | {seis|
|000005d0| 6d 6f 2c 70 75 72 2d 65 | 65 7d 21 75 69 75 63 64 |mo,pur-e|e}!uiucd|
|000005e0| 63 73 21 72 65 6e 64 65 | 72 20 28 55 53 45 4e 45 |cs!rende|r (USENE|
|000005f0| 54 29 0a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |T).-----|--------|
|00000600| 43 55 54 20 48 45 52 45 | 2d 2d 2d 2d 2d 2d 2d 2d |CUT HERE|--------|
|00000610| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000620| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000630| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000640| 2d 2d 0a 23 21 20 2f 62 | 69 6e 2f 73 68 0a 23 20 |--.#! /b|in/sh.# |
|00000650| 54 68 69 73 20 69 73 20 | 61 20 73 68 65 6c 6c 20 |This is |a shell |
|00000660| 61 72 63 68 69 76 65 2c | 20 6d 65 61 6e 69 6e 67 |archive,| meaning|
|00000670| 3a 0a 23 20 31 2e 20 52 | 65 6d 6f 76 65 20 65 76 |:.# 1. R|emove ev|
|00000680| 65 72 79 74 68 69 6e 67 | 20 61 62 6f 76 65 20 74 |erything| above t|
|00000690| 68 65 20 23 21 20 2f 62 | 69 6e 2f 73 68 20 6c 69 |he #! /b|in/sh li|
|000006a0| 6e 65 2e 0a 23 20 32 2e | 20 53 61 76 65 20 74 68 |ne..# 2.| Save th|
|000006b0| 65 20 72 65 73 75 6c 74 | 69 6e 67 20 74 65 78 74 |e result|ing text|
|000006c0| 20 69 6e 20 61 20 66 69 | 6c 65 2e 0a 23 20 33 2e | in a fi|le..# 3.|
|000006d0| 20 45 78 65 63 75 74 65 | 20 74 68 65 20 66 69 6c | Execute| the fil|
|000006e0| 65 20 77 69 74 68 20 2f | 62 69 6e 2f 73 68 2e 0a |e with /|bin/sh..|
|000006f0| 23 20 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |# The fo|llowing |
|00000700| 66 69 6c 65 73 20 77 69 | 6c 6c 20 62 65 20 63 72 |files wi|ll be cr|
|00000710| 65 61 74 65 64 3a 0a 23 | 09 73 74 72 70 62 72 6b |eated:.#|.strpbrk|
|00000720| 2e 63 0a 23 20 54 68 69 | 73 20 61 72 63 68 69 76 |.c.# Thi|s archiv|
|00000730| 65 20 63 72 65 61 74 65 | 64 3a 20 54 68 75 20 4a |e create|d: Thu J|
|00000740| 75 6e 20 31 38 20 31 30 | 3a 34 39 3a 33 34 20 31 |un 18 10|:49:34 1|
|00000750| 39 38 37 0a 65 78 70 6f | 72 74 20 50 41 54 48 3b |987.expo|rt PATH;|
|00000760| 20 50 41 54 48 3d 2f 62 | 69 6e 3a 24 50 41 54 48 | PATH=/b|in:$PATH|
|00000770| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 73 74 72 |.if test| -f 'str|
|00000780| 70 62 72 6b 2e 63 27 0a | 74 68 65 6e 0a 09 65 63 |pbrk.c'.|then..ec|
|00000790| 68 6f 20 73 68 61 72 3a | 20 6f 76 65 72 2d 77 72 |ho shar:| over-wr|
|000007a0| 69 74 69 6e 67 20 65 78 | 69 73 74 69 6e 67 20 66 |iting ex|isting f|
|000007b0| 69 6c 65 20 22 27 73 74 | 72 70 62 72 6b 2e 63 27 |ile "'st|rpbrk.c'|
|000007c0| 22 0a 66 69 0a 63 61 74 | 20 3c 3c 20 5c 53 48 41 |".fi.cat| << \SHA|
|000007d0| 52 5f 45 4f 46 20 3e 20 | 27 73 74 72 70 62 72 6b |R_EOF > |'strpbrk|
|000007e0| 2e 63 27 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |.c'.#inc|lude <st|
|000007f0| 72 69 6e 67 73 2e 68 3e | 0a 0a 63 68 61 72 20 2a |rings.h>|..char *|
|00000800| 20 73 74 72 70 62 72 6b | 28 70 61 74 31 2c 20 70 | strpbrk|(pat1, p|
|00000810| 61 74 32 29 0a 0a 20 20 | 20 20 72 65 67 69 73 74 |at2).. | regist|
|00000820| 65 72 20 63 68 61 72 20 | 2a 70 61 74 31 3b 20 20 |er char |*pat1; |
|00000830| 20 20 2f 2a 20 74 61 72 | 67 65 74 20 70 61 74 74 | /* tar|get patt|
|00000840| 65 72 6e 20 2a 2f 0a 20 | 20 20 20 63 68 61 72 20 |ern */. | char |
|00000850| 2a 70 61 74 32 3b 20 20 | 20 20 20 20 20 20 20 20 |*pat2; | |
|00000860| 20 20 20 2f 2a 20 6c 69 | 73 74 20 6f 66 20 63 68 | /* li|st of ch|
|00000870| 61 72 61 63 74 65 72 73 | 20 74 6f 20 73 65 61 72 |aracters| to sear|
|00000880| 63 68 20 66 6f 72 20 2a | 2f 0a 7b 0a 0a 20 20 20 |ch for *|/.{.. |
|00000890| 20 72 65 67 69 73 74 65 | 72 20 63 68 61 72 20 2a | registe|r char *|
|000008a0| 63 70 31 2c 20 2a 63 70 | 32 3b 0a 0a 20 20 20 20 |cp1, *cp|2;.. |
|000008b0| 63 70 31 20 3d 20 70 61 | 74 32 3b 0a 0a 20 20 20 |cp1 = pa|t2;.. |
|000008c0| 20 77 68 69 6c 65 20 28 | 2a 63 70 31 20 21 3d 20 | while (|*cp1 != |
|000008d0| 27 5c 30 27 29 20 7b 0a | 20 20 20 20 20 20 20 69 |'\0') {.| i|
|000008e0| 66 20 28 28 63 70 32 20 | 3d 20 69 6e 64 65 78 28 |f ((cp2 |= index(|
|000008f0| 70 61 74 31 2c 20 2a 63 | 70 31 29 29 20 21 3d 20 |pat1, *c|p1)) != |
|00000900| 28 63 68 61 72 20 2a 29 | 20 30 29 0a 20 20 20 20 |(char *)| 0). |
|00000910| 20 20 20 20 20 20 20 72 | 65 74 75 72 6e 28 63 70 | r|eturn(cp|
|00000920| 32 29 3b 20 0a 20 20 20 | 20 20 20 20 63 70 31 2b |2); . | cp1+|
|00000930| 2b 3b 0a 20 20 20 20 7d | 0a 0a 20 20 20 20 72 65 |+;. }|.. re|
|00000940| 74 75 72 6e 28 28 63 68 | 61 72 20 2a 29 20 30 29 |turn((ch|ar *) 0)|
|00000950| 3b 0a 7d 0a 53 48 41 52 | 5f 45 4f 46 0a 23 09 45 |;.}.SHAR|_EOF.#.E|
|00000960| 6e 64 20 6f 66 20 73 68 | 65 6c 6c 20 61 72 63 68 |nd of sh|ell arch|
|00000970| 69 76 65 0a 65 78 69 74 | 20 30 0a |ive.exit| 0. |
+--------+-------------------------+-------------------------+--------+--------+