Posted By

kendsnyder on 03/22/12


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

clacwebstudio


Count lines of Code


 / Published in: Bash
 

Counts non-empty lines of code in a php project

  1. find . -print | egrep '\.php|\.sql|\.css|\.js|\.ctp|\.html|\.htm|\.md|\.json|\.rdf|\.htaccess|\.txt|\.conf|\.inc' | grep -v '\.svn' | xargs cat | sed '/^\s*$/d' | wc -l

Report this snippet  

You need to login to post a comment.