Skip to content

Instantly share code, notes, and snippets.

@sylvainraye
Created September 13, 2013 12:38
Show Gist options
  • Save sylvainraye/6550126 to your computer and use it in GitHub Desktop.
Save sylvainraye/6550126 to your computer and use it in GitHub Desktop.
Count the number of coded lines
find . -type f -name '*.php' -exec awk 'END {print NR}' '{}' + 2>/dev/null | awk '{ total+=$1 }END{print total}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment