# ファイルリネーム処理
# for filepath in ( aaa/*.jpg | aaa/*.png)で複数ファイル対応可能?
# 拡張子の大小未対応
files="$inPath/*.JPG"
for filepath in ${files}
do
filename=`basename ${filepath}`
timestamp=`ls -d -l --time-style='+%Y%m%d' ${filepath} | cut -d ' ' -f 6`
echo " $filename >>>> $timestamp-$filename"
`cp -p ${filepath} "${outPath}/${timestamp}-${filename}"`
done