| The Following User Says Thank You to pelago For This Useful Post: | ||
>/tmp/result
for i in $(seq $(expr $(head -c 2 election.blt) - 1))
do
openstv-run-election -r CsvReport -s $i RTSTV /tmp/election.blt \
| awk -F, '/Elected/ { print $1 }' \
| while read w
do if ! grep -q "$w" /tmp/result
then
echo $w >> /tmp/result
break
fi
done
done
awk 'BEGIN { i = 1; } { print i, $0; i++; }' /tmp/result | sed 's/"//g'



| The Following User Says Thank You to neal For This Useful Post: | ||