查看项目代码总行数

grep -c -r --include="*.java"  '.*' ./* | awk -F ":" '{sum+=$2} END {print sum}'

原文地址:https://www.cnblogs.com/lingear/p/6003484.html