Quote:
|
Originally Posted by matrixmadhan
this one would do,
assuming single precision,
Code:
prstat 0 1 | grep weblogic | awk '{print $9}' | sed 's/%//' | while line do
if [ `echo $line \* 10 | bc` -gt 900 ]
then
echo "$line greater than 90"
else
echo "$line not greater than 90"
fi
done
|
Nice one. Instead of assuming single precision, why not use 100 as the multiplier and check against 9000?