diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2022-05-22 00:29:46 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2022-05-22 00:29:46 +0200 |
commit | 2f9f8d59f522b30c2f7c0e998bde88255c8ce123 (patch) | |
tree | c800c87115e36a0138e06e1d254eaac27851d674 | |
parent | šola (diff) | |
download | sola-gimb-3-2f9f8d59f522b30c2f7c0e998bde88255c8ce123.tar sola-gimb-3-2f9f8d59f522b30c2f7c0e998bde88255c8ce123.tar.gz sola-gimb-3-2f9f8d59f522b30c2f7c0e998bde88255c8ce123.tar.bz2 sola-gimb-3-2f9f8d59f522b30c2f7c0e998bde88255c8ce123.tar.lz sola-gimb-3-2f9f8d59f522b30c2f7c0e998bde88255c8ce123.tar.xz sola-gimb-3-2f9f8d59f522b30c2f7c0e998bde88255c8ce123.tar.zst sola-gimb-3-2f9f8d59f522b30c2f7c0e998bde88255c8ce123.zip |
-rw-r--r-- | inf/.gitignore | 2 | ||||
-rwxr-xr-x | inf/26.5.sh | 17 |
2 files changed, 17 insertions, 2 deletions
diff --git a/inf/.gitignore b/inf/.gitignore index e3bd28a..fccf77e 100644 --- a/inf/.gitignore +++ b/inf/.gitignore @@ -1,2 +1,4 @@ domain_users.grep *.txt +*.tsv +*.png diff --git a/inf/26.5.sh b/inf/26.5.sh index 61682d6..209e02d 100755 --- a/inf/26.5.sh +++ b/inf/26.5.sh @@ -10,11 +10,24 @@ sesskey=`curl $url/login/index.php $co --data-raw "logintoken=$logintoken&userna seznam=`echo seznam nazadnje posodobljen: $(date) && curl $url/mod/choice/report.php $c --data-raw "id=$id&download=txt&sesskey=$sesskey"` se=`grep -v Skupina <<<$seznam | grep -v nazadnje` sez=`cat <<<$se | grep -v "ni odgovora"` -vsi=`grep Dijaki domain_users.grep | grep 2019 | grep -v 2019Q | grep -v test | cut -f3` +vsi=`grep Dijaki domain_users.grep | grep 2019 | grep -v test | cut -f3` razlika=`comm -13 <(cat <<<$sez | cut -f3 | cut -d@ -f1 | sort) <(cat <<<$vsi | sort)` +napa=`comm -23 <(cat <<<$sez | cut -f3 | cut -d@ -f1 | sort) <(cat <<<$vsi | sort)` cat <<<$razlika > neprijavljeni.txt cat <<<$sez > prijavljeni.txt cat <<<$se > vpisani.txt cat <<<$vsi > vsi.txt +cat <<<$napa > napačni.txt +echo -e "0\tverstovšek\t`grep 'Igor Verstovšek' prijavljeni.txt | wc -l`" > graf.tsv +echo -e "1\tpretnar\t`grep 'Matija Pretnar' prijavljeni.txt | wc -l`" >> graf.tsv +echo -e "2\tkuščer\t`grep 'Enej Kuščer' prijavljeni.txt | wc -l`" >> graf.tsv +echo -e "3\tbervar\t`grep 'Jan Bervar' prijavljeni.txt | wc -l`" >> graf.tsv +echo -e "4\trihtaršič\t`grep 'Saša Rihtaršič' prijavljeni.txt | wc -l`" >> graf.tsv +echo -e "5\tguid\t`grep 'Matej Guid' prijavljeni.txt | wc -l`" >> graf.tsv +echo -e "6\tmižigoj\t`grep 'Aleša Mižigoj' prijavljeni.txt | wc -l`" >> graf.tsv +echo -e "7\tsvetlin\t`grep 'Metka Svetlin' prijavljeni.txt | wc -l`" >> graf.tsv +echo -e "8\tahčan\t`grep 'Uroš Ahčan' prijavljeni.txt | wc -l`" >> graf.tsv +echo -e "9\trozman\t`grep 'Domen Rozman' prijavljeni.txt | wc -l`" >> graf.tsv +gnuplot graf.gnuplot echo "zadnja posodobitev: " `date` > stanje.txt -echo`wc -l {{ne,}prijavljeni,vpisani,vsi}.txt` >> stanje.txt +echo`wc -l {{ne,}prijavljeni,vpisani,vsi,napačni}.txt` >> stanje.txt |