美術(shù)大哥給過來的文件經(jīng)常是: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