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 84b5b07 commit fcbf338Copy full SHA for fcbf338
scripts/docstats
@@ -0,0 +1,22 @@
1
+#!/bin/bash
2
+
3
+echo "Word counts of all <article> content:"
4
+echo =============
5
+echo
6
7
+for dir in build/*/*/
8
+do
9
+ WC=$(
10
+ find $dir \
11
+ -name '*.html' \
12
+ -exec scripts/hwc {} ';' \
13
+ | perl -ne '$SUM += $_; END { print "$SUM\n" }' )
14
15
+ if [[ -n "$WC" && "$WC" -gt 0 ]]; then
16
+ echo $dir
17
+ echo $WC
18
+ fi
19
+done
20
21
22
scripts/hwc
@@ -0,0 +1,3 @@
+htmlq -t -f $1 article | wc -c
0 commit comments