devops-exercises/scripts/count_questions.sh
2019-12-17 09:16:28 +01:00

6 lines
191 B
Bash
Executable File

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