10 lines
461 B
Bash
Executable File
10 lines
461 B
Bash
Executable File
#!/bin/bash
|
|
# Opus 19avr: count drill-down coverage
|
|
TOTAL=$(ls /var/www/html/*.html 2>/dev/null | wc -l)
|
|
UNIV=$(grep -l "OPUS UNIVERSAL DRILL-DOWN v1 19avr" /var/www/html/*.html 2>/dev/null | wc -l)
|
|
SPECIFIC=$(grep -l "opus-drill-modal" /var/www/html/*.html 2>/dev/null | wc -l)
|
|
COV_PCT=$((UNIV * 100 / TOTAL))
|
|
cat <<EOF
|
|
{"total_pages":$TOTAL,"universal_drill":$UNIV,"specific_drill_pilot":$SPECIFIC,"coverage_pct":$COV_PCT,"timestamp":"$(date -Iseconds)"}
|
|
EOF
|