Skip to content

Instantly share code, notes, and snippets.

@stayradiated
Created February 3, 2016 03:06
Show Gist options
  • Save stayradiated/df94b54db67af00bcea0 to your computer and use it in GitHub Desktop.
Save stayradiated/df94b54db67af00bcea0 to your computer and use it in GitHub Desktop.
Find number of lines of code in a folder recursively (excluding tests)
find . -iname '*.js' -not -path "*/__tests__/*" -exec wc -l {} \; | ag -o \\d+ | paste -sd+ - | bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment