`
hollowinhart
  • 浏览: 124864 次
  • 性别: Icon_minigender_1
  • 来自: 太原
社区版块
存档分类
最新评论

统计文件个数

 
阅读更多

1.find 路径 -type f|wc -l

2.find 路径 -type f > tmp

   files=0

   while read line

   do

       files=` expr $files + 1 `

   done < tmp

   echo $files

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics