Source lines of code count using PowerShell

http://www.limilabs.com/blog/source-lines-of-code-count-using-powershell

(dir -include *.cs -recurse | select-string "^(\s*)//" -notMatch | select-string "^(\s*)$" -notMatch | select-string "^\s*(?:\{|\})\s*$" -notMatch).Count

Comments

Popular posts from this blog

Mathematica vs Matlab vs Maple, discuss (Wilmott Forums)