Skip to content

Instantly share code, notes, and snippets.

@coderek
Last active August 29, 2015 14:18
Show Gist options
  • Save coderek/c1bbbad420b835a0a233 to your computer and use it in GitHub Desktop.
Save coderek/c1bbbad420b835a0a233 to your computer and use it in GitHub Desktop.
useful shell commands
# 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