==== 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/