Linux递归计算指定文件夹下文件数量
if [ ! $1 ]; then
$1='./'
fi
dirpath=$1
find $dirpath -type f | wc -l
本文来自博客园,作者:Minerw,转载请注明原文链接:https://www.cnblogs.com/minerw/p/to-get-file-count-in-certain-dir.html
if [ ! $1 ]; then
$1='./'
fi
dirpath=$1
find $dirpath -type f | wc -l
本文来自博客园,作者:Minerw,转载请注明原文链接:https://www.cnblogs.com/minerw/p/to-get-file-count-in-certain-dir.html