$1;查找的目录路径
SAVEIFS=$IFS IFS="\n\b"
for file in $(find $1 -maxdepth 1 -iname "*.jpg" -type f ) do echo file done
IFS=$SAVEIFS