Answers for "count lines of code in directory"

4

count lines of code in a folder windows

// For Windows 
dir -Recurse *.* | Get-Content | Measure-Object -Line
			   ^
			   Extension of the files to consider.
Posted by: Guest on May-24-2021
2

check lines of code in a folder

find . -name '*.[FileExtention]' | xargs wc -l
Posted by: Guest on December-08-2020
1

count line of code

$ cloc --exclude-lang=DTD,Lua,make,Python .
    2570 text files.
    2200 unique files.
    8654 files ignored.

http://cloc.sourceforge.net v 1.53  T=8.0 s (202.4 files/s, 99198.6 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
JavaScript                    1506          77848         212000         366495
CSS                             56           9671          20147          87695
HTML                            51           1409            151           7480
XML                              6           3088           1383           6222
-------------------------------------------------------------------------------
SUM:                          1619          92016         233681         467892
-------------------------------------------------------------------------------
Posted by: Guest on September-08-2020
1

count lines in files

find . -name '*.php' | xargs wc -l
Posted by: Guest on September-08-2020

Code answers related to "count lines of code in directory"

Browse Popular Code Answers by Language