We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cc341d commit c079436Copy full SHA for c079436
bin/stats.sh
@@ -1,6 +1,9 @@
1
#!/usr/bin/env bash
2
# Assumption: a README.txt means a solved puzzle.
3
4
+ESC_BOLD="\033[1m"
5
+ESC_REST="\033[0m"
6
+
7
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
8
. $SCRIPT_DIR/lib.sh
9
cd_git_root
@@ -13,7 +16,7 @@ nbr_solved() {
13
16
find "$path" -name README.txt -exec printf %c {} + | wc -c | tr -d ' '
14
17
}
15
18
-printf "Number of solved puzzle days:\n"
19
+printf "Number of solved puzzle ${ESC_BOLD}days${ESC_REST}:\n"
20
years=$(find . -maxdepth 1 -type d -regex "\./*[0-9]*" | grep -oE "[0-9]+" | sort)
21
for year in $years; do
22
solved=$(nbr_solved $year)
0 commit comments