统计代码有多少行?
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
统计代码有多少行?
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
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。