Linux shell统计源代码文件总行数

find . -name '*.cpp' -type f -exec cat '{}' \; | wc -l

猜你喜欢

转载自handy-wang.iteye.com/blog/1115093