Hallo Liste! Hier mal das Skript, dann sieht man besser, was ich machen will... #!/bin/bash DIRECTORY=/var/log/traffic cd $DIRECTORY ifconfig > ifconfig.txt tx_last=`cat tx_last.txt` rx_last=`cat rx_last.txt` mv tx.txt tx_last.txt mv rx.txt rx_last.txt cat ifconfig.txt | grep -A 8 eth1 | grep 'RX bytes' | awk '{print $3,$4}' | sed -n -e "s/(//p" | sed -n -e "s/)//p" | sed -n -e "s/Mb//p" | sed -n -e "s/ //p" > tx.txt cat ifconfig.txt | grep -A 8 eth1 | grep 'RX bytes' | awk '{print $7,$8}' | sed -n -e "s/(//p" | sed -n -e "s/)//p" | sed -n -e "s/Mb//p" | sed -n -e "s/ //p" > rx.txt tx=`cat tx.txt` echo "$tx" rx=`cat rx.txt` echo "$rx" rx_gesamt=`expr $rx - $rx_last` tx_gesamt=`expr $tx - $tx_last` gesamt=`expr $rx_gesamt + $tx_gesamt` echo "$gesamt" Ich hoffe, ihr könnt mir helfen, so funktioniert es leider nicht. Danke Jens