printf "%d" 0x10 printf "%x" 16
printf "%d" 0x10
printf "%x" 16
bash 内嵌命令 printf 用于进制转换
原文:https://www.cnblogs.com/ZhaoKevin/p/12296527.html