shell 统计代码行数

 find . ( -name "*.cpp" -o -name "*.hpp" -o -name "*.h" ) -exec wc -l {} +
原文地址:https://www.cnblogs.com/wolbo/p/14325836.html