devops-exercises/scripts/count_questions.sh

6 lines
192 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
2019-12-21 12:26:41 +01:00
echo $(( $(ls ./challenges/ | grep ".*md" -c) + $(grep \</summary\> -c README.md) ))