Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jun 2001 20:24:01 -0700
From:      "Crist J. Clark" <cristjc@earthlink.net>
To:        tyler spivey <tspivey8@home.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: program to convert hex to decimal or vise versa?
Message-ID:  <20010623202401.D30874@blossom.cjclark.org>
In-Reply-To: <200106232041.f5NKft938687@home.com>; from tspivey8@home.com on Sat, Jun 23, 2001 at 04:41:55PM -0400
References:  <200106232041.f5NKft938687@home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 23, 2001 at 04:41:55PM -0400, tyler spivey wrote:
> is their a program in ports that i can use
> to convert hex to dec or vv? i don't use x
> and want a command line based app.

  $ printf "%x\n" 5000
  1f4

  $ printf "%d\n" 0x12ab
  4779

-- 
Crist J. Clark                           cjclark@alum.mit.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010623202401.D30874>