码迷,mamicode.com
首页 >  
搜索关键字:shell脚本插件    ( 1个结果
统计每分钟的流量
#!/bin/bashwhiletruedoRX=`ifconfig|awk‘NR==7{print$2}‘|cut-d":"-f2`TX=`ifconfig|awk‘NR==7{print$6}‘|cut-d":"-f2`ZX=`expr$RX+$TX`sleep60#foriin`seq120-11`#do#echo-n-e"\b$i"#sleep1#done#echo-n-e"\b"RX1=`ifconfig|awk‘NR==7{print$2}‘|cut-d":"-f2`TX1=`ifconfig|a..
分类:其他好文   时间:2015-10-12 02:04:02    阅读次数:229
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!