BASH   41

edit_rrd.sh

Guest on 23rd September 2022 12:50:55 AM

  1. #!/bin/bash
  2.  
  3. if [ $# = 0 ]
  4. then
  5.         echo "Usage ./edit_rrd.sh [FILENAME]"
  6.         exit
  7. fi
  8.  
  9. rrdtool dump $1 > /tmp/work.xml
  10.  
  11. vi /tmp/work.xml
  12.  
  13. rm -f $1
  14.  
  15. rrdtool restore /tmp/work.xml $1

Raw Paste


Login or Register to edit or fork this paste. It's free.