Decimal to Hex conversion on command line

Doran L. Barton fozz at
Mon Sep 9 08:29:44 MDT 2013

On Mon, 9 Sep 2013 15:50:17 +0530
Dan Egli <ddavidegli at> wrote:

> Anyone know of a quick and easy way to convert decimal to hexidecimal on
> the command line?

printf will do it.

    $ printf "%x\n" 16


Doran L. Barton <fozz at> - Linux, Perl, Web, good fun, and more!
 "Use repeatedly for severe damage."
    -- Seen on a shampoo bottle

More information about the PLUG mailing list