Created
January 18, 2023 09:36
-
-
Save Aldaviva/a1d18b533df6fe07874518e8aa63d1be to your computer and use it in GitHub Desktop.
Count non-whitespace lines of code in a directory
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
grep --include '*.js' --recursive --invert-match --line-regexp --count --exclude-dir='lib' --exclude-dir='thirdparty' --exclude-dir='vendor' '\s*' . | awk -F : '{ sum += $2 } END { print sum }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment