hi,
i am totally stuck i need a script (that works in ksh under solaris 10) that takes the following output
d15 509MB c1t0d0s5
d13 7.0GB c1t0d0s3
d11 1.5GB c1t0d0s1
d10 10GB c1t0d0s0
d25 509MB c1t1d0s5
d23 7.0GB c1t1d0s3
d21 1.5GB c1t1d0s1
d20 10GB c1t1d0s0
and for the second column turn all values into MB and removes the MB and GB text. Some are already shown in mb and some are in GB. I think using awk would be the easiest but awk is not my strong point. The command i use to get the output in the first place is :
metastat -c | grep "s" | grep $DISK | awk '{print $1,$3,$4}'\
> ${UFSDISKSLICE}_${DISK}_${Date}
any help??