首页 > 技术文章 > 〖Linux〗Shell十进制数值转换十六进制
scue 2014-08-07 23:42 原文
1 dec2hex(){ 2 printf "%x" $1 3 } 4 5 a=$(dec2hex 2131165531) 6 echo $a