count=0
i=0
for path in $1/*;
do
fileName=$(basename $path)
fname=${fileName%.*}
fExtension=${fileName#*.}
array_fileName[count]=${fileName}
let count++
done
for path in $2/*;
do
fileName=$(basename $path)
fname=${fileName%.*}
fExtension=${fileName#*.}
echo $fileName
rename "y/$fileName/${array_fileName[$i]}/" "$fileName"
echo $fileName
let i++
done
不知道为什么不行,烦请高手出山,谢谢!
jixiangruyi 于 2013-01-15 15:46:18发表:
好东西,谢谢分享
:)
Luoall 于 2013-01-10 08:50:52发表:
不是高手的路过