Linux-bash命令笔记 代码行数统计 find . -name "*.[ch]*" -depth 1 -exec cat {} \; |wc 匹配当前文件夹的深度为1的cpp/h文件,并且给他cat出来,最后传导wc命令中计算行数。