日期:2014-05-16 浏览次数:20844 次
#! /bin/sh # # auth: mymtom # date: 2008-02-20 x=7.0 y=6.3 r=`echo "${x}>${y}" | awk -F '>' '{ print ($1 > $2 ? "yes" : "no") }'` echo "x=${x}, y=${y}; x>y ? ${r}" x=5.5 y=6.3 r=`echo "${x}>${y}" | awk -F '>' '{ print ($1 > $2 ? "yes" : "no") }'` echo "x=${x}, y=${y}; x>y ? ${r}" x=7.0 y=6.3 r=`echo "${x}>${y}" | awk -F '>' '{ print ($1 > $2 ? "yes" : "no") }'` echo "x=${x}, y=${y}; x>y ? ${r}" x=6.3 y=6.3 r=`echo "${x}>${y}" | awk -F '>' '{ print ($1 > $2 ? "yes" : "no") }'` echo "x=${x}, y=${y}; x>y ? ${r}"