Last active
August 29, 2015 14:18
-
-
Save coderek/c1bbbad420b835a0a233 to your computer and use it in GitHub Desktop.
useful shell commands
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
# number lines for all javascript files | |
find . -type f \( -name "*.js" -or -name "*.jsx" \) \ | |
! -path "./node_modules/*" ! -path "./vendor/*" \ | |
! -path "./generated-public/*" \ | |
! -path "./design/*" \ | |
! -path "./test/*" \ | |
! -path "./app/statics/*" -print | xargs -L 1 wc -l | awk '{s+=$1} END {print s}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment