1.獲取該目錄下,全部文件之和bash
> find ./ -type f | wc -lblog
> shclass
folder=$(pwd) echo $folder declare total=0 for d in `ls $folder` do echo $d if [ -d $d ]: then number=$(ls ./$d/ | wc -l) total=$((total+number)) fi done; echo $total
2.給文件重命名命名