使用Shell统计项目PHP代码的总行数

find ./ -name '*.php' | xargs wc -l;

统计PHP文件个数

find ./test.com -name "*.php" |wc -l