Faire des qcm simplement - retour accueil
git clone git://bebou.netlib.re/qcm
Log | Files | Refs | README |
commit 234d6232eaa3511ba300f7454ee31d8fe0556051 parent 7c6103d6f934620324cad55f4c1b3203da8a6a80 Auteurice: Arthur Pons <arthur.pons@unistra.fr> Date: Wed, 6 Nov 2024 20:25:58 +0100 Certains paste ont besoin du "-" explicite Diffstat:
M | qcm.sh | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qcm.sh b/qcm.sh @@ -53,7 +53,7 @@ tail -fn0 ${logs:-/var/log/nginx/access.log} | while :;do dat=$(< $tmpd/in sort -u -k1,1 | cut -d ' ' -f7 | cut -d'/' -f3 | sort | uniq -c | sort -rn) - tot=$(echo "$dat" | awk '{print $1}' | paste -s -d+ | bc) + tot=$(echo "$dat" | awk '{print $1}' | paste -s -d+ - | bc) clear playout sleep 0.2