I'm trying to find the average %busy,avque. from the sar -d
output
I've got the data and formatted it into the following format
Time Device %busy avque r+w/s blks/s
00:10:00 hdisk0 0 0.0 0 0
What I'm trying to do is (Header not in orginal file)
div=`wc -l disk0.data`
a=0
while read line
do
a=`awk '{print $3}'`
b=`expr $a + $a`
c=`expr $a + $b`
done < disk0.data
d=`expr $c \ $div`
echo "The Average %busy is "$d
I know I'm missing something really obvious
--
| Mike Nixon
| Unix Admin
| ----------------------------
output
I've got the data and formatted it into the following format
Time Device %busy avque r+w/s blks/s
00:10:00 hdisk0 0 0.0 0 0
What I'm trying to do is (Header not in orginal file)
div=`wc -l disk0.data`
a=0
while read line
do
a=`awk '{print $3}'`
b=`expr $a + $a`
c=`expr $a + $b`
done < disk0.data
d=`expr $c \ $div`
echo "The Average %busy is "$d
I know I'm missing something really obvious
--
| Mike Nixon
| Unix Admin
| ----------------------------