Oops correction. The 10th ilne from the bottom of script

    if bad != 0

has benign bug (it triggers only on empty file).
This line shall be:

     if total != 0 " avoid division by 0

Yakov

Reply via email to