Skip to content

Instantly share code, notes, and snippets.

@riston
Created July 4, 2012 15:52
Show Gist options
  • Save riston/3048004 to your computer and use it in GitHub Desktop.
Save riston/3048004 to your computer and use it in GitHub Desktop.
Source file line counter
find . -type f -name "*.java" -exec wc -l {} \; | awk '{total += $1} END{print total}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment