#!/bin/bash ### Author:huangjinfa ### Email:webjin@qq.com for i in $(/bin/ls $1) do /usr/bin/rrdtool dump ./$1/$i > ./$1/$i.xml /bin/sed -i '4s/300/60/g' ./$1/$i.xml /bin/sed -i '10,23s/600/120/g' ./$1/$i.xml /bin/rm ./$1/$i /usr/bin/rrdtool restore ./$1/$i.xml ./$1/$i /bin/rm ./$1/$i.xml done