Off-topic, but I just learned some awk...

 >awk '/;[:blank:]*/ { count++ } /(if|for|while|switch).*\(/ { count++ } 
END { print count; }' `find . -name \*.java`

This should get reasonably close.  awk exists for Windows but I don't 
know what the equivalent of find is.  Probably faster to install Linux 
on your box! :^)

Lou Farho wrote:

>Can anyone point me to a good utility for performing line of code counter
>for Java and C++?
>The counter needs to count statements.
>
>
>Thanks!
>Lou
>
>



Reply via email to