-
-
Save dispeakble/b9750a4e7ada3017660ff5644263cf90 to your computer and use it in GitHub Desktop.
gist for listing all file lines of code for some file types and exclude directories
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
find . -name "*.js" -not -path "*node_modules*" | xargs wc -l | |
find . -name "*.ts" -not -path "*node_modules*" | xargs wc -l | |
find . -name "*.js" -not -path "*public*" | xargs wc -l | |
find . -name "*.js" -not -path "*dist*" | xargs wc -l | |
# and all together | |
find . -name "*.js" -not -path "*node_modules*" -not -path "./public*" -not -path "./dist*" | xargs wc -l | |
find . -name "*.js" . -name "*.ts" -not -path "*node_modules*" -not -path "./public*" -not -path "./dist*" | xargs wc -l | |
find . -type f \( -iname "*.js" -o -iname "*.ts" \) -not -path "*/node_modules/*" -not -path "*/public/*" -not -path "*/dist/*" -not -path "*/build/*" | xargs wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment