See a blog post written in good, reproduced over the format issue, so the collection look this way, do not take offense, please click on the original blog: awk use strtonum () function and Shell, octal, hexadecimal and decimal conversion
Recommend a decimal conversion website online : Online hex conversion tools