Invoke cloc to count your source files, directories, archives, or git commits.
- a file
$ cloc hello.c
- a directory
$ cloc gcc-5.2.0/gcc/c
- an archive
$ cloc master.zip
- a git repository, using a specific commit
$ cloc 6be804e07a5db
- each subdirectory of a particular directory
$ for d in ./*/ ; do (cd "$d" && echo "$d" && cloc --vcs git); done
- diff
$ cloc --diff Python-2.7.9.tgz Python-2.7.10.tar.xz