#!/bin/bash RRD=/tmp/trafic_wlan0.rrd DATAS=$(grep wlan0 /proc/net/dev | cut -d: -f 2 | awk -v ts=$(date +%s) '{print ts":"$2":"$10}') rrdupdate $RRD $DATAS