for fullfilename in /root/jpg/*.jpgdo
filepath=${fullfilename%/*}
filename=${fullfilename##*/}
fileleftname=${filename%_*}
filedatename=${fileleftname##*-}
mv $fullfilename "$filepath/$filedatename $filename"
done
欢迎分享,转载请注明来源:内存溢出
for fullfilename in /root/jpg/*.jpgdo
filepath=${fullfilename%/*}
filename=${fullfilename##*/}
fileleftname=${filename%_*}
filedatename=${fileleftname##*-}
mv $fullfilename "$filepath/$filedatename $filename"
done
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)