devops-exercises/scripts/count_questions.sh

6 lines
194 B
Bash
Raw Normal View History

#!/bin/bash
2019-12-17 09:16:28 +01:00
# We dont care about non alphanumerics filenames so we just ls | grep to shorten the script.
2019-12-16 12:16:05 +01:00
echo $(( $(ls -R ./exercises/ | grep ".*md" -c) + $(grep \</summary\> -c README.md) ))