#!/bin/bash files="img-1*" start=1 rename=1 echo $count for i in `ls $files` do echo $i rename=$(($start * 2 - 1)) #rename=$(($start * 2)) start=$(($start + 1)) echo $rename refilename=`printf "%02u" $rename` mv $i $refilename.tif done
張貼留言
沒有留言:
張貼留言