Skip to content

Instantly share code, notes, and snippets.

@jimdiroffii
Created October 18, 2023 20:39
Show Gist options
  • Save jimdiroffii/61cab7115cc6a7d5d1bfe206fcb0dc50 to your computer and use it in GitHub Desktop.
Save jimdiroffii/61cab7115cc6a7d5d1bfe206fcb0dc50 to your computer and use it in GitHub Desktop.
Count Lines
(gci -include *.cpp,*.h -recurse | select-string .).Count
@jimdiroffii
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment