Tuesday, July 14, 2009

Find number of files created and total line of code written

In Cygwin for window or Unix, use following line of code to find:


Number of java files

prompt>find -name *.java > java_name.txt

Then look at java_name.txt with editor to get number of files.



Count number of lines of code inside the java

prompt>wc -l `find . -regex ".*\.\(java\)"`

No comments:

Post a Comment