Logo
Explore Help
Register Sign In
Study/Devops-exercises
1
0
Fork 0
You've already forked Devops-exercises
mirror of https://github.com/bregman-arie/devops-exercises.git synced 2026-02-04 23:59:11 +00:00
Code Issues Packages Projects Releases Wiki Activity
Devops-exercises/scripts/count_questions.sh

10 lines
280 B
Bash
Raw Normal View History

The end of one long README Apparently we've reached the limit of GitHub rendering (512K). Time to change the structure accordingly - exercises and questions will move to sub-directories in the exercises directory. This is the first patch in performing this transition.
2021-11-10 00:55:03 +02:00
#!/usr/bin/env bash
change page format I got the feedback that people don't want to see the answer right below the question in visible state.
2019-10-11 00:57:21 +03:00
Add Terraform and Linux questions and exercises Also updated the script that counts questions to actually update the number in README.md
2022-10-30 21:49:50 +02:00
set -eu
count=$(echo $(( $(grep -E "\[Exercise\]|</summary>" -c README.md topics/*/README.md | awk -F: '{ s+=$2 } END { print s }' ))))
echo "There are $count questions and exercises"
sed -i "s/currently \*\*[0-9]*\*\*/currently \*\*$count\\**/" README.md
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 29ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API