while read c s;do printf %.6f\\n $[1-${#s//$c}./$#s] done
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page