/sbin/ifconfig eth0 | egrep "RX bytes" | sed -e 's/[ ]{2, }//g' -e 's/([0-9]{1,}.[0-9]{1,} [KM]b)//g' >> <filename>
I feel people who can write regular expression are the most brilliant people on this earth :-))
Warm Regards,
Mr. Mukund Deshmukh, Beta Computronics Pvt Ltd. 10/1 IT Park, Parsodi, Nagpur -440022 India. Web site - http://betacomp.com
Meet us at our Booth 10.1 A09 , CHINAPLAS 2009 , May 18 - 21, 2009, Pazhou Complex, Gaungzhou, CHINA.