0
点赞
收藏
分享

微信扫一扫

如何统计代码总行数:指令

find . * |xargs wc -l

如果统计 ​​.html​​​,把前面的匹配改成 ​​.html​​ 即可

find . *.html |xargs wc -l

如果统计全部文件的行数

find . * |xargs wc -l

效果

6 images_bak/c3.png
188 images_bak/c3.jpg
459 images_bak/g3big.jpg
211 images_bak/c4.jpg
5 images_bak/arrows1.png
162 images_bak/teambg.jpg
2 images_bak/close.png
310 index.html
wc: js: read: Is a directory
2041 js/jquery.magnific-popup.js
11 js/baihui.js
2317 js/bootstrap.js
284 js/jquery.flexisel.js
4 js/jquery.min.js
246 js/modernizr.custom.53451.js
146 js/responsiveslides.min.js
902 js/jquery.flexslider.js
117 js/jquery.cookie.js
116 login.html
167 news.html
219 regist.html
185 single.html
149 userinfo.html
137991 total


举报

相关推荐

0 条评论