From 7935fb44d95d148f448e801e384787ba60ddf098 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 17 Oct 2023 12:42:52 +0300 Subject: (s2) Reworked words to be counted with awk --- csg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.3.1-23-gd82d