Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit7935fb44d95d148f448e801e384787ba60ddf098 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-10-17 12:42:52 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-10-17 12:42:52 +0300
Files2b765d9c79ba2b515fc8baa9450bd7c86054cda3
csg-7935fb44d95d148f448e801e384787ba60ddf098.tar
csg-7935fb44d95d148f448e801e384787ba60ddf098.tar.gz
csg-7935fb44d95d148f448e801e384787ba60ddf098.zip
Parent1fe1e2172486a483320e2b8bf5d60817d5693b4e (diff)
(s2) Reworked words to be counted with awk
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"