统计文件个数

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

猜你喜欢

转载自hollowinheart.iteye.com/blog/1447520