mirror of
https://github.com/pasky/brmelect.git
synced 2025-06-07 17:44:54 +02:00
README: Add Counting Votes recipe
This commit is contained in:
parent
3b6b809915
commit
196b353412
1 changed files with 7 additions and 0 deletions
|
@ -13,3 +13,10 @@ permissions for all but the owner.
|
|||
|
||||
It should just work; you may need to adjust the `votes.txt` path currently
|
||||
hardcoded in `web-ballot.pl`, where the cast votes are recorded.
|
||||
|
||||
Counting Votes
|
||||
--------------
|
||||
|
||||
This script will show just the final vote for each token:
|
||||
|
||||
perl -nle 'chomp; @b = split/,/; $a{$b[0]} = [@b]; END { for (values %a) { print join(",", @$_); } }' ~/votes.txt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue