Skip to content

Instantly share code, notes, and snippets.

@jessex
Created June 14, 2011 17:55
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jessex/1025450 to your computer and use it in GitHub Desktop.
Save jessex/1025450 to your computer and use it in GitHub Desktop.
Count all lines of code for java source files in current directory
find . -name '*.java' | xargs wc -l
@AaronFoltz
Copy link

You can also search in certain directories using: find foo bar ".java" | xargs wc -l

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment