日期:2014-05-16 浏览次数:20714 次
#!/bin/sh
i=1
while [ "$i" -le 300 ]; do
ns w_w.tcl $i
gawk –f delay.awk rate=$i wired_wireless.tr >>delay
gawk –f loss.awk rate=$i wired_wireless.tr >>loss_rate
gawk -f throughtput.awk rate=$i wired_wireless.tr >>throughtput
if ["$i" -le 225 ]; then
i=$(($i+20))
elif ["$i" -le 250 ]; then 【此处为第十行,代码中无此括号内容】
i=$(($i+5))
else
i=$(($i+2))
fi
done
exit 0
#!/bin/sh
i=1
while [ "$i" -le 300 ]; do
ns w_w.tcl $i
gawk –f delay.awk rate=$i wired_wireless.tr >>delay
gawk –f loss.awk rate=$i wired_wireless.tr >>loss_rate
gawk -f throughtput.awk rate=$i wired_wireless.tr >>throughtput
if [ "$i" -le 225 ]; then
i=$(($i+20))
elif [ "$i" -le 250 ]; then 【此处为第十行,代码中无此括号内容】
i=$(($i+5))
else
i=$(($i+2))
fi
done
exit 0