Posted by mazet on Jan 03 2012 in Programmation, Awk
Simple function to convert hexadecimal figures to decimal. It need to define a constant table hex
BEGIN {
for (i=0; i<10; i++) hex[i] = i
hex["a"] = hex["A"] = 10
hex["b"] = hex["B"] = 11
hex["c"] = hex["C"] = 12
hex["D"… more »