#!/bin/bash ### Author:huangjinfa ### Email:webjin@qq.com for i in $(/bin/ls $1) do /usr/bin/rrdtool dump ./\/$i > ./\/$i.xml /bin/sed -i '4s/300/60/g' ./\/$i.xml /bin/sed -i '10,23s/600/120/g' ./\/$i.xml /bin/rm ./\/$i /usr/bin/rrdtool restore ./\/$i.xml ./\/$i /bin/rm ./\/$i.xml done
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/191642.html