摘要:
直接上代码:#!/bin/bashfunction usage{ echo "Usage: $0 " echo "e.g. $0 eth0 2" exit 1}if [ $# -lt 2 ];then usagefieth=$1interval=$2in_old=$(cat /proc/net/dev | grep -w $eth | sed -e "s/\(.*\)\:\(.*\)/\2/g" | awk '{ print $1 }' )out_old=$(cat /proc/net/dev | grep -w $e 阅读全文
posted @ 2012-01-07 21:00 feisky 阅读(1395) 评论(0) 推荐(0) 编辑