diff options
| Commit | 7935fb44d95d148f448e801e384787ba60ddf098 (patch) | |
|---|---|---|
| Author | 2023-10-17 12:42:52 +0300 | |
| Committer | 2023-10-17 12:42:52 +0300 | |
| Files | 2b765d9c79ba2b515fc8baa9450bd7c86054cda3 | |
| csg-7935fb44d95d148f448e801e384787ba60ddf098.tar csg-7935fb44d95d148f448e801e384787ba60ddf098.tar.gz csg-7935fb44d95d148f448e801e384787ba60ddf098.zip | ||
| Parent | 1fe1e2172486a483320e2b8bf5d60817d5693b4e (diff) | |
(s2) Reworked words to be counted with awk
1 files changed, 1 insertions, 1 deletions
| -rwxr-xr-x | csg | 2 |
@@ -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" |
