#!/bin/sh sed \ -e '1,/For postprocessing/d' \ -e '/^$/d' \ -e 's/ /_/g' \ | while read db val; do # strip the units etc val=`echo $val | sed 's;_.*;;'` echo $db: $val rrdtool update $db.rrd N:$val done