From 2f9f8d59f522b30c2f7c0e998bde88255c8ce123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sat, 21 May 2022 22:29:46 +0000 Subject: predavavnje --- inf/.gitignore | 2 ++ inf/26.5.sh | 17 +++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) (limited to 'inf') 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 -- cgit v1.2.3