by Bill Sempf
25. November 2013 19:02
I had to count SLOC and files for a POC of a static analysis tool
The SLOC were counted using:
ls * -recurse -include *.aspx, *.ascx, *.cs, *.ps1 | Get-Content | Measure-Object -Line
The files were counted using
(Get-ChildItem -force -recurse).Count
Guddam PowerShell. Rocks. So. Hard.
067dfaf8-b989-4df5-81a6-20d3846c53ab|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Tags: