cloc
cloc copied to clipboard
Count Characters
It would be nice if there was an option to count the characters instead of just the lines.
It's a good idea, esp since some C/C++ styles call for a single brace character on a line by itself which becomes an exaggeration to call that a line of code. However the capability doesn't fit well with the existing cloc architecture. I'll leave this issue open but do not foresee an imminent solution.
I finally used the unix command to combine
$ find books/ -name '*.md' | xargs wc -m | tail -l | awk '/total/{print $1}'
or
$ find books/ -name '*.md' -exec wc -m {} + | awk '/total/{print $1}'