Add Terraform and Linux questions and exercises

Also updated the script that counts questions to actually update
the number in README.md
This commit is contained in:
abregman
2022-10-30 21:49:50 +02:00
parent a85e52e64e
commit e6a80309e0
16 changed files with 529 additions and 65 deletions

View File

@@ -1,3 +1,9 @@
#!/usr/bin/env bash
echo $(( $(grep -E "\[Exercise\]|</summary>" -c README.md topics/*/README.md | awk -F: '{ s+=$2 } END { print s }' )))
set -eu
count=$(echo $(( $(grep -E "\[Exercise\]|</summary>" -c README.md topics/*/README.md | awk -F: '{ s+=$2 } END { print s }' ))))
echo "There are $count questions and exercises"
sed -i "s/currently \*\*[0-9]*\*\*/currently \*\*$count\\**/" README.md