Provided by: cloc_1.76-1_all
cloc - Count, or compute differences of, lines of source code and comments.
cloc [options] <FILE|DIR> ...
Count, or compute differences of, physical lines of source code in the given files (may be archives such as compressed tarballs or zip files, or git commit hashes or branch names) and/or recursively below the given directories. It is written entirely in Perl, using only modules from the standard distribution.
Count the lines of code in the Perl 5.10.0 compressed tar file on a UNIX-like operating system: cloc perl-5.10.0.tar.gz Count the changes in files, code, and comments between Python releases 2.6.6 and 2.7: cloc --diff Python-2.6.6.tar.bz Python-2.7.tar.bz2 To see how cloc aligns files for comparison between two code bases, use the --diff-alignment=FILE option. Here the alignment information is written to "align.txt": cloc --diff-aligment=align.txt gcc-4.4.0.tar.bz2 gcc-4.5.0.tar.bz2 Count file, code, and comment changes between two git commits: cloc --git --diff b409850824 HEAD Print the recognized languages: cloc --show-lang Remove comments from "foo.c" and save the result in "foo.c.nc" ("nc" is an arbitrary extension; used here to denote "no comments"): cloc --strip-comments=nc foo.c Additional examples can be found at <https://github.com/AlDanial/cloc>.
The cloc program was written by Al Danial <email@example.com> and is Copyright (C) 2006-2018 <firstname.lastname@example.org>. The manual page was originally written by Jari Aalto <email@example.com>. Both the code and documentation is released under the GNU GPL version 2 or (at your option) any later version. For more information about license, visit <http://www.gnu.org/copyleft/gpl.html>.