Syed M. Shaaf

programmer, linux geek...

number of lines of code in a directory

29 Oct 2010 »

I just wanted to find the number of lines of java code in a directory i.e. recursively..

find . -type f -name '*java' -print0 | wc -l --files0-from=- 

Output:
.
.
56 ./App.java
550 total