#! /bin/bash
count=1
for filename in `ls *.log`
do
newfilename="./pushurls"$count".log"
mv $filename $newfilename
count=$(($count+1))
echo "count : "$count
done
未经允许不得转载:微信 美文-微信文章库-我的知识库 » 批量修改文件名按顺序自增
#! /bin/bash
count=1
for filename in `ls *.log`
do
newfilename="./pushurls"$count".log"
mv $filename $newfilename
count=$(($count+1))
echo "count : "$count
done
未经允许不得转载:微信 美文-微信文章库-我的知识库 » 批量修改文件名按顺序自增