cloc

Count, and compute differences of, lines of source code and comments.
More information.
cloc {path/to/directory}
cloc --progress=1 {path/to/directory}
cloc --diff {path/to/directory/one} {path/to/directory/two}
cloc --vcs git {path/to/directory}
cloc --by-file {path/to/directory}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY