Count lines of Code


/ Published in: Bash
Save to your folder(s)

Counts non-empty lines of code in a php project


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.