filelist=`ls ./Data/*`
for INPUT_IMAGE in $filelist #遍历文件夹
do
INPUT_IMAGE_NAME=${INPUT_IMAGE##*/} #获取文件名
INPUT_PARENT="./DataResult/"
INPUT_IMAGE_NAME=$INPUT_PARENT$INPUT_IMAGE_NAME #拼接路径
echo $INPUT_IMAGE_NAME #命令端打印信息
done
Game Over ~~~