Menu Home

Shell: Count the numbers of lines of code

Exclude empty & Comment lines.
[code]
find . -name “*.java”|xargs cat|grep -v -e ^$ -e ^\s*\/\/.*$|wc -l
[/code]

Categories: 未分类

Tagged as:

lnmcc