小数一般用awk进行处理,如上。代码:
echo $a $b |awk '{if($1>$2){print $1,">",$2;}else if($1<$2){print $1,"<",$2;}else{print $1,"=",$2;}}'
if [ `echo "$usage > $z" | bc` -ne 0 ];then