User Tools

Site Tools


docu:csheet.sysadm:script:bash:hex_to_decimal

Convert a hex string to decimal using built-in "printf"


You can use printf shell built-in to do that:

printf "%d" "0x00000ce00"
>>> 52736


Source: https://www.cyberciti.biz/faq/linux-unix-convert-hex-to-decimal-number/

docu/csheet.sysadm/script/bash/hex_to_decimal.txt · Last modified: 2020/09/15 10:47 by admin