conver hex->dec,bin  dec->hex and bin->hex in mac terminal using function and awk-script