devops-exercises/scripts/count_questions.sh
abregman e54648d47f Modify the structure of README.md
Instead of having exercises in their own separate section,
they are now part of the main topics sections.

This should make the learning process easier to follow
where users have both exercises and questions in the same
place.

In addition, added a couple of new questions & exercises
and modified existing scripts accordingly.
2021-07-12 02:02:57 +03:00

6 lines
200 B
Bash
Executable File

#!/bin/bash
# We dont care about non alphanumerics filenames so we just ls | grep to shorten the script.
echo $(( $(grep \</summary\> -c README.md) + $(grep -i Solution README.md | grep \.md -c) ))