统计代码有多少行?
find ./source -type f | xargs awk 'END{print NR}'
#或者
find ./source -name "*[.h|.cpp]" | xargs awk 'END{print NR}'
统计代码有多少字?
find ./source -type f | xargs wc -m
#或者
find ./source -name "*[.h|.cpp]" | xargs wc -m
转载请注明来源:https://www.cnblogs.com/bugutian/