From c6e4e87a71ec0a7d292c195e2ee20119c8e9f2e1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 31 Dec 2023 17:18:47 +0100 Subject: [PATCH] stats: also exclude newlines for nonspace characters --- stats.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stats.sh b/stats.sh index 2b27f52cd..179091754 100644 --- a/stats.sh +++ b/stats.sh @@ -9,7 +9,7 @@ content=`echo "$titles-$tbd" | bc` words=`cat $book | wc -w` lines=`cat $book | wc -l` -nonspace=`cat $book | tr -d ' #' | wc -c` +nonspace=`cat $book | tr -d ' #\n' | wc -c` echo "Section titles: $titles" #echo "Sections with content: $content"