cloc 実行例
$ perl cloc-1.60.pl ./hello/ 32 text files. 30 unique files. 18 files ignored. http://cloc.sourceforge.net v 1.60 T=1.00 s (15.0 files/s, 9409.0 lines/s) ------------------------------------------------------------------------------- Language files blank comment code ------------------------------------------------------------------------------- Bourne Shell 5 774 915 5784 make 4 110 41 849 m4 2 96 14 781 C 2 4 1 16 C/C++ Header 2 7 9 8 ------------------------------------------------------------------------------- SUM: 15 991 980 7438 -------------------------------------------------------------------------------Makefile等を除く
$ perl cloc-1.60.pl --exclude-lang=make,m4,"Bourne Shell" ./hello/ 32 text files. 30 unique files. 29 files ignored. http://cloc.sourceforge.net v 1.60 T=0.50 s (8.0 files/s, 90.0 lines/s) ------------------------------------------------------------------------------- Language files blank comment code ------------------------------------------------------------------------------- C 2 4 1 16 C/C++ Header 2 7 9 8 ------------------------------------------------------------------------------- SUM: 4 11 10 24