Skip to content

Commit

Permalink
stats: also exclude newlines for nonspace characters
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Dec 31, 2023
1 parent dcb74b0 commit c6e4e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c6e4e87

Please sign in to comment.