cloc
Count lines of code. tldr-pages
On several platforms
Several platforms
Count all the lines of code in a directory
cloc path/to/directoryIdentifyCompare 2 directory structures and count the differences between them
cloc --diff path/to/directory1 path/to/directory2IdentifyIgnore files that are ignored by VCS, such as files specified in .gitignore
cloc --vcs git path/to/directoryIdentifyDisplay the results for each file instead of each language
cloc --by-file path/to/directoryIdentify