On Monday 20 April 2009 09:12:51 Mukund Deshmukh wrote:
/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 :-))
no - the most brilliant ones are those that can *read* regexes that other people write.