Created
January 31, 2022 10:34
-
-
Save seb776/0bf5208236e8a1ca935afd61386bb8cd to your computer and use it in GitHub Desktop.
Powershell count lines of code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Taken from here https://www.limilabs.com/blog/source-lines-of-code-count-using-powershell | |
(dir -include *.cs -recurse | select-string "^(\s*)//" -notMatch | select-string "^(\s*)$" -notMatch).Count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment