统计cn目录下,php文件数量:
find cn/ -name "*.php" |wc -l



统计cn目录下所有php文件代码行数。
find cn/ -name "*.php" |xargs cat|wc -l
wc -l `find ./ -name "*.php"`|tail -n1


统计a目录下所有php文件代码行数,过滤了空行
find /a -name "*.php" |xargs cat|grep -v ^$|wc -l



Tags:
网摘-网事 | 评论(0) | 引用(0) | 阅读(4555)
Share |
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]