[EMAIL PROTECTED] wrote: > Thanks, Rob and Mark, but I'm pretty sure I'm trying to do something a > little different from a count hash. Each token in the candidate string > needs to be compared separately to all the target strings, and then count > the number of matches. So take any token out of the first string -- > :M260: for example -- and count its matches against one of the target > strings, like :L520:M260:C000:S000:L200:14:E214:. I don't think a count > hash does that?? > > Thanks, > > Scott > > Scott E. Robinson > SWAT Team > UTC Onsite User Support > RR-690 -- 281-654-5169 > EMB-2813N -- 713-656-3629
Hi Scott, The first task of a programmer is to develop a clear specification for the functionality desired. It looks like you need to do some work here, because the specification is somewhat ambiguous. Right offhand, I can think of two interpretations for the functionality you describe: 1) You wish to get the account of occurences, in each other line, of each line in some basis line. You indicate something about the first line. Is this line somehow distinct from the others, that it is used as a basis? 2) a) You wish to get the count, for each unique token in each line, of occurences in each other line. b) You wish to get the count, for each token in each line, of occurences in each other line. Either of these would produce a lot more output, and require much more processing. Alternative b would also be redundant. What precisely are you trying to get? Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]