mirror of
https://github.com/bregman-arie/devops-exercises.git
synced 2026-02-04 23:59:11 +00:00
question counter script improved
This commit is contained in:
parent
f09e3b8549
commit
26da068735
@ -1,3 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo $((7 + $(cat README.md | grep \<\/summary\> | wc -l)))
|
# 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) ))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user