Created
October 18, 2023 20:39
-
-
Save jimdiroffii/61cab7115cc6a7d5d1bfe206fcb0dc50 to your computer and use it in GitHub Desktop.
Count Lines
This file contains hidden or 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
(gci -include *.cpp,*.h -recurse | select-string .).Count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Attribution: Greg D | https://stackoverflow.com/a/1244872
-Count lines by file extension
-Returns integer to terminal
-Run in root directory containing files to count
-Modify extension list as necessary