知道指定后缀名的文件总个数命令: find . -name "*.html" | wc -l 知道一个目录下代码总行数以及单个文件行数: find . -name "*.html" | xargs wc -l
转:https://blog.51cto.com/mikewang/1633627