ls -l * |grep "^-"|wc -l ---- to count files
ls -l * |grep "^d"|wc -l ----- to count dir
统计所有jpg后缀文件数:
ls *jpg -l | wc -l