Commit 1d6db306 authored by Vincent De Bussy's avatar Vincent De Bussy

info nombre d etudiants par UVs

parent 142cf45f
#!/bin/bash
grep -e "^\s[A-Z][A-Z][0-9][0-9]" -r data/api_init_projet_EdT/EdT/Data/*.edt >> donnees.txt
grep -e "^\s[A-Z][A-Z][0-9][0-9]" -r data/*.edt >> donnees.txt
cut -d ':' -f 2-6 donnees.txt > donnees2.txt
cut -c 2- donnees2.txt > donnees3.txt
......@@ -9,24 +9,26 @@ uniq -c donnees4.txt > donnees5.txt
sort donnees5.txt | cut -c 8- >>donnees6.txt
sort donnees5.txt | cut -c 8- > donnees6.txt
uniq -c donnees6.txt > donnees7.txt
cat donnees7.txt
uniq donnees6.txt > donnees7.txt
nb_uv=$(wc -l donnees7.txt | awk '{print $1}')
touch uv_nb_etu.txt
for i in `seq 1 $nb_uv` ; do
uv_id=$(cat donnees7.txt | head -$i | tail -1)
uv_nb_etu=$(grep $uv_id data/api_init_projet_EdT/EdT/Data/*.edt -m 1 | wc -l)
echo $uv_id $uv_nb_etu >> uv_nb_etu.txt
done
uniq uv_nb_etu.txt
#cat donnees5.txt | awk '{print $2}' | sort | uniq -c
rm donnees?.txt
#grep "SY02" data/api_init_projet_EdT/EdT/Data/*.edt -m 1 | wc -l
#cat donnees5.txt | cut -c 8- | sort | uniq -c
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment