Bash kann das genau so gut, aber irgendwie hat sich das noch nicht herumgesprochen...
Gruss, AndyCode:#!/bin/bash for i in *.xml; do rrdtool restore $i ${i%%.xml}.rrd done
Bash kann das genau so gut, aber irgendwie hat sich das noch nicht herumgesprochen...
Gruss, AndyCode:#!/bin/bash for i in *.xml; do rrdtool restore $i ${i%%.xml}.rrd done
Und hier noch einer:
JanCode:for i in *.xml; do rrdtool restore $i `basename $i .xml`.rrd done
Lesezeichen