Literacy Project/Matching day1

From OLPC
< Literacy Project
Revision as of 22:52, 21 May 2012 by Cjb (talk | contribs) (Created page with '<pre> cjb@owl:/home/ethiopia/richard/wonchi_2012-05-15$ vi /home/cjb/matching.results cjb@owl:/home/ethiopia/richard/wonchi_2012-05-15$ for i in *; do echo -n "tablet $i "; perl …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
cjb@owl:/home/ethiopia/richard/wonchi_2012-05-15$ vi /home/cjb/matching.results cjb@owl:/home/ethiopia/richard/wonchi_2012-05-15$ for i in *; do echo -n "tablet $i "; perl -le '$inside=0; $questions=0; while (<>) { if (m/START OF NEW QUESTION/) { $questions++; $inside = 1; next; } if ($inside == 1) { if (m/ANSWER CORRECT/) { $correct++; } $inside = 0; } } $percent = int($correct/$questions * 100); print "answered $correct out of $questions questions correctly, which is $percent%"' < $i/edu*/csv_$i/Matching.csv; done > ~/matching.results

cjb@owl:/home/ethiopia/richard/wonchi_2012-05-15$ cat /home/cjb/matching.results 
tablet 01 answered 12 out of 43 questions correctly, which is 27%
tablet 02 answered 21 out of 86 questions correctly, which is 24%
tablet 03 answered 1 out of 4 questions correctly, which is 25%
tablet 04 answered 3 out of 13 questions correctly, which is 23%
tablet 05 answered 1 out of 6 questions correctly, which is 16%
tablet 06 didn't launch Matching
tablet 07 answered 6 out of 25 questions correctly, which is 24%
tablet 08 answered 14 out of 50 questions correctly, which is 28%
tablet 09 answered 11 out of 65 questions correctly, which is 16%
tablet 10 answered 19 out of 120 questions correctly, which is 15%
tablet 11 answered 19 out of 75 questions correctly, which is 25%
tablet 12 answered 95 out of 484 questions correctly, which is 19%
tablet 13 answered 20 out of 106 questions correctly, which is 18%
tablet 14 answered 12 out of 52 questions correctly, which is 23%
tablet 15 answered 6 out of 26 questions correctly, which is 23%
tablet 16 answered 22 out of 88 questions correctly, which is 25%
tablet 17 answered 9 out of 34 questions correctly, which is 26%
tablet 18 answered 16 out of 62 questions correctly, which is 25%
tablet 19 answered 5 out of 26 questions correctly, which is 19%
tablet 20 answered 1 out of 17 questions correctly, which is 5%