I'm trying to calculate a tablespace free percent from a shell script.
Percent Free=Total Free/Total_Availble *100
p_free=`expr $total_free / $total_max_bytes`
This always returns 0, which I can't do further calculation.
per_free=`expr $p_free \* 100`
What command should I use instead? thanks
Percent Free=Total Free/Total_Availble *100
p_free=`expr $total_free / $total_max_bytes`
This always returns 0, which I can't do further calculation.
per_free=`expr $p_free \* 100`
What command should I use instead? thanks