/ Published in: Bash

Counts non-empty lines of code in a php project
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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
Comments
