summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-05-24 19:26:48 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2022-05-24 19:26:48 +0200
commit8511656c4d964eb2979da8cdc7bdd96ae4db17cb (patch)
tree243f46c75928c5a4670a2df7403b1758823018da
parentvprašanja 26.5 (diff)
parentpredavavnje (diff)
downloadsola-gimb-3-8511656c4d964eb2979da8cdc7bdd96ae4db17cb.tar
sola-gimb-3-8511656c4d964eb2979da8cdc7bdd96ae4db17cb.tar.gz
sola-gimb-3-8511656c4d964eb2979da8cdc7bdd96ae4db17cb.tar.bz2
sola-gimb-3-8511656c4d964eb2979da8cdc7bdd96ae4db17cb.tar.lz
sola-gimb-3-8511656c4d964eb2979da8cdc7bdd96ae4db17cb.tar.xz
sola-gimb-3-8511656c4d964eb2979da8cdc7bdd96ae4db17cb.tar.zst
sola-gimb-3-8511656c4d964eb2979da8cdc7bdd96ae4db17cb.zip
-rw-r--r--inf/.gitignore2
-rwxr-xr-xinf/26.5.sh17
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