Print Version
Home
Private
Public
+ phpRecEvent
+ Finnish-German Vocabulary Test
+ hwsms.pl
+ NeoMail Fixed Font Patch
+ Linux Courses
Members
About
spiney:~ $ sum=0; max=0;\
> for i in {a..z}  ; \
> do echo -n "$i: "; \
>    count=`grep -ic "^$i" /usr/share/dict/finnish`; \
>    sum=$(($sum+$count)); \
>    if [ $count -gt $max ]; then 
>       max=$count; 
>       maxletter=$i; 
>    fi;
>    echo $count; \
> done; \
> echo; \
> echo "Maximum: $max (letter: $maxletter)"; \
> echo "Sum    : $sum"; \
> echo "Ratio  : $(echo "$max/$sum*100" | bc -l)"
a: 60197
b: 2558
c: 339
d: 2465
e: 22013
f: 4515
g: 1896
h: 59942
i: 17653
j: 20203
k: 104774
l: 46456
m: 39252
n: 21789
o: 19312
p: 63138
q: 1
r: 33786
s: 64707
t: 63657
u: 13243
v: 53606
w: 187
x: 12
y: 12390
z: 50
: 516
: 2930

Maximum: 104774 (letter: k)
Sum    : 731587
Ratio  : 14.32146826009756871000
spiney:~ $
[ Home ][ Private ][ Public ][ Members ][ About ]

This page was last compiled on April 12, 2016

Valid HTML 4.01! Valid CSS!