devops-exercises/scripts/count_questions.sh

6 lines
192 B
Bash
Raw Normal View History

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