Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 1 insertions, 1 deletions
-rwxr-xr-xcsg2
diff --git a/csg b/csg
index fdbec24..fe3a677 100755
--- a/csg
+++ b/csg
@@ -199,7 +199,7 @@ transform-file() {
}
startedGathering && /^$/ { exit }
END { print desc }' "$file")"
- local words="$(wc -w "$file" | cut -d ' ' -f 1)"
+ local words="$($CSG_AWK '{total += NF} END{print total}' "$file")"
# Generate
$CSG_MD_TO_HTML "$file" > "$outf"