Skip to content

Files

Latest commit

 

History

History
32 lines (29 loc) · 645 Bytes

cloc.md

File metadata and controls

32 lines (29 loc) · 645 Bytes

CLOC helper

Invoke cloc to count your source files, directories, archives, or git commits.

Examples

  1. a file
    $ cloc hello.c
  2. a directory
    $ cloc gcc-5.2.0/gcc/c
  3. an archive
    $ cloc master.zip
  4. a git repository, using a specific commit
    $ cloc 6be804e07a5db
  5. each subdirectory of a particular directory
    $ for d in ./*/ ; do (cd "$d" && echo "$d" && cloc --vcs git); done
  6. diff
    $ cloc --diff Python-2.7.9.tgz Python-2.7.10.tar.xz