#!/bin/bash /sbin/ifconfig > /tmp/ifconfig cat /tmp/ifconfig |grep ppp0 > /tmp/net NET=`cat /tmp/net` IN=`cat /tmp/ifconfig |tail -n 2|grep bytes|cut -d "(" -f2|cut -d ")" -f1` if [ -n NET ]; then echo -n "Downloaded: $IN" fi