use awk
x="0.80"y="0.70"
result=$(awk -vx=$x -vy=$y 'BEGIN{ print x>=y?1:0}')
if [ "$result" -eq 1 ];then
echo "x more than y"
fi
|||
use awk
x="0.80"Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-12-22 09:39
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社