Convert decimal to hexadecimal in UNIX shell script

Posted by skiphoppy on Stack Overflow See other posts from Stack Overflow or by skiphoppy
Published on 2008-12-18T19:00:50Z Indexed on 2010/03/12 14:27 UTC
Read the original article Hit count: 376

Filed under:
|
|

In a UNIX shell script, what can I use to convert decimal numbers into hexadecimal? I thought od would do the trick, but it's not realizing I'm feeding it ASCII representations of numbers.

printf? Gross! Using it for now, but what else is available? :)

© Stack Overflow or respective owner

Related posts about hex

Related posts about unix