包括空格 wc -l `find ./ -name "*.cpp"`|tail -n1# 统计当前目录所有 cpp 文件,不包括空行 find . -name "*.cpp" |xargs cat|grep -v ^$|wc -l