Simple LOC (lines of code) report
Is easy to filter specific file extension:
find . -name '*.php' | xargs wc -l
Or multiple file extensions:
find . -name '*.php' -o -name '*.inc' | xargs wc -l
For a Node.js project we can also ignore specific dir:
find . -name '*.js' -not -path './node_modules/*' | xargs wc -l
Or we can ignore multiple dirs:
find . -name '*.js' -not -path '*/node_modules/*' -not -path '*/bower_components/*' | xargs wc -l
Written by Ezequias Dinella
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#