Shell String Fuzzy Comparison


java_version="1.6.0_34"


if [[ $java_version = 1.6.0* ]];then

    echo "$java_version version is right"

else

    echo "$java_version version is not right"

fi



你可能感兴趣的:(Shell String Fuzzy Comparison)