[NetBehaviour] jwm-art.death

James Morris james at jwm-art.net
Mon Sep 21 23:44:17 CEST 2020

winner selecting bash script attached. modifications welcome. winner 
currently fixed.

-------------- next part --------------
# jwm-art.death
# version 0.0.1
# any modifications welcome
# final script will be run by jwm on 2020-10-05 (5th October 2020)
# see https://lists.netbehaviour.org/pipermail/netbehaviour/2020-August/041570.html
count=$(echo "$names" | wc -l)
RF=2020 # $(date +%N) #select winner based on nanoseconds element of system time
R=$((10#$RF % $count + 1))
winner=$(echo "$names" | sed -n $R\p)
echo "And the winner is $winner!"

More information about the NetBehaviour mailing list