统计代码有多少行?

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
posted on 2020-06-13 16:17  步孤天  阅读(1117)  评论(0编辑  收藏  举报