question counter script improved

This commit is contained in:
surister 2019-12-16 12:16:05 +01:00
parent f09e3b8549
commit 26da068735

View File

@ -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) ))