election=$1 tail -n 1 $election | sed 's/"//g' >/tmp/result for i in $(seq $(expr $(head -c 2 $election) - 1)) do openstv-run-election -r CsvReport -s $i FTSTV $election \ | 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'
for i in *.blt; do sh results $i; done