统计代码有多少行? 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 相关文章: