Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jun 2001 00:43:15 -0700 (PDT)
From:      Dan Busarow <dan@dpcsys.com>
To:        Mike Meyer <mwm@mired.org>
Cc:        tyler spivey <tspivey8@home.com>, questions@FreeBSD.ORG
Subject:   Re: program to convert hex to decimal or vise versa?
Message-ID:  <Pine.BSF.4.21.0106240039000.86457-100000@java2.dpcsys.com>
In-Reply-To: <15157.26660.156190.806500@guru.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jun 23, Mike Meyer wrote:
> tyler spivey <tspivey8@home.com> types:
> > 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.
> 
> Ports nothing. bc is in the base system. I've added prompts for
> clarity, as it doesn't prompt.
> 
> guru$ bc
> bc 1.06
> Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
> This is free software with ABSOLUTELY NO WARRANTY.
> For details type `warranty'. 
> > ibase = 16

I was going to suggest bc too but the questioner required scripts.
Crist had the answer for him and taught me something new too.
printf(1)  who came up with that?   And when?  

Dan
-- 
 Dan Busarow                                                  949 443 4172
 Dana Point Communications, Inc.                            dan@dpcsys.com
 Dana Point, California  83 09 EF 59 E0 11 89 B4   8D 09 DB FD E1 DD 0C 82


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?Pine.BSF.4.21.0106240039000.86457-100000>