dec2hex
#!/bin/sh printf "%X\n" $1
hex2dec
#!/bin/sh echo $((0x$1))
原链接:http://pank.org/blog/2004/07/shell-dec2hex-hex2dec.html
dec2hex
#!/bin/sh printf "%X\n" $1
hex2dec
#!/bin/sh echo $((0x$1))
原链接:http://pank.org/blog/2004/07/shell-dec2hex-hex2dec.html
转载于:https://www.cnblogs.com/siikee/articles/4203953.html