美术大哥给过来的文件经常是:0.png,1.png,2.png.. ,手动改太麻烦,写了一个shell脚本批量加个加个英文前缀
#!/bin/bash
str="rename.sh"
for fileName in `ls .`
do
if [ $fileName != $str ];then
echo "qianzui"$fileName
mv $fileName "qianzui"$fileName
fi
done
美术大哥给过来的文件经常是:0.png,1.png,2.png.. ,手动改太麻烦,写了一个shell脚本批量加个加个英文前缀
#!/bin/bash
str="rename.sh"
for fileName in `ls .`
do
if [ $fileName != $str ];then
echo "qianzui"$fileName
mv $fileName "qianzui"$fileName
fi
done