((test=0x1234))
echo $test
if [ $test -eq 4660 ]; then
echo hello
else
echo not hello
fi
linux-shell 脚本转换 十六进制 十进制 八进制 二进制-zt
http://www.51testing.com/html/00/130600-867618.html
版权声明:本文为shipinsky原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
((test=0x1234))
echo $test
if [ $test -eq 4660 ]; then
echo hello
else
echo not hello
fi
linux-shell 脚本转换 十六进制 十进制 八进制 二进制-zt
http://www.51testing.com/html/00/130600-867618.html