Re: Consistent formating long descriptions as input data
Manoj Srivastava <srivasta@debian.org> writes:
>> But if we have tons of '.' or 'o' lists, for sure we will need to
>> break that rule and support them. Do you have numbers about how many
>> such lists we have? If they are just a few they can easily be fixed,
>> if they are half the archive (which I doubt, having seen them rarely)
>> it would be a different story ...
>>>>> ,-- count-bullet-chars.sh --
>>>>> #!/bin/sh
>>>>> lists=/var/lib/apt/lists/*_sid_main_*_Packages
>>>>> total=`grep "^ *[-+\*o] " $lists | wc -l`
>>>>> for tag in "\*" "-" "+" "o"; do
>>>>> items=`grep "^ *$tag " $lists | wc -l`
>>>>> percent=`echo "scale=4; $items / $total * 100" | bc`
>>>>> echo "Tag $tag was used $items times ($percent%)"
>>>>> done
>>>>> `--
>
>>>>> Tag \* was used 9277 times (68.0900%)
>>>>> Tag - was used 3837 times (28.1600%)
>>>>> Tag + was used 120 times (.8800%)
>>>>> Tag o was used 390 times (2.8600%)
And for completeness:
Tag \. was used 17 times (.1200%)
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: