[CentOS7]Shell循环删除自动补零序列文件
for i in {1..276}
do
var=`echo $i|awk '{printf("%04d\n",$0)}'`
shell="rm -rf sysbackup.${var}.zip"
echo $shell
$shell
done
for i in {1..276}
do
var=`echo $i|awk '{printf("%04d\n",$0)}'`
shell="rm -rf sysbackup.${var}.zip"
echo $shell
$shell
done