bkf2020 website mirrored here.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
381 B

math=$(grep -F '<th class="so">Solved</th>' mathlog.html | wc -l)
cs=$(grep -F '<th class="so">Solved</th>' cslog.html | wc -l)
total=$(echo "${math} + ${cs}" | bc)
grep -F 'var problemsSolved' visual.html > curr
echo "var problemsSolved = ${total};" > new
diff -w curr new || echo -e "\033[0;31mYou need to update visual.html with ${total} problems solved! \033[0m"
rm curr new