一句shell命令搞定代码行数统计

hittyt.iteye.com/blog/1700584

find . -name “.java”|xargs wc -l|grep “total”|awk ‘{print $1}’
find . -name “
.java”|xargs cat|wc -l #Output:37634