On 08/12/09 10:34, Paul Mansfield wrote: > here's a one-liner that will do the job; I opted to copy the RRDs rather > than rename, just in case... > > for Y in $X; do Z=`echo $Y | sed 's/varnish_/varnish_NAME__/'`; echo $Y > $Z; cp -p $Y $Z ; done
oops, there was a preceding line missing so it should be X=`ls HOSTNAME*-varnish_* | grep -v varnish__` for Y in $X; do Z=`echo $Y | sed 's/varnish_/varnish_NAME__/'`; echo $Y $Z; cp -p $Y $Z ; done _______________________________________________ varnish-dev mailing list varnish-dev@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-dev