Search Results

Search: Posts Made By: Olly
15,400
Posted By m1xram
Tricky
So..

A char is RE ([a-zA-Z][\^\$\~])

A fill is RE [\.,]

Freq = fills / (chars + fills)

Input:
F1 F2 F3 F4 Aa$.c$A..,.$,.,$.^~.
F1 F2 F3 F4 one^~.two.a$threeA$four.five$six
F1 F2 F3 F4...
15,400
Posted By m1xram
instances of delimiters
There are some issues with the match strings you supplied. For one some match strings are substrings of others. If you wanted to know occurrences of ".$" and "." you'd have to look at the count of...
15,400
Posted By m1xram
samples
Always post some sample data. A couple of input lines and then the desired output. So here's a guess....

{
count = split($9, a, "[.,~^]");
printf ("%s %.3f\n", $0, (count - 1) / $8);
...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 08:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy