Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jun 2001 09:53:34 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Dan Busarow <dan@dpcsys.com>
Cc:        Mike Meyer <mwm@mired.org>, tyler spivey <tspivey8@home.com>, questions@FreeBSD.ORG
Subject:   Re: program to convert hex to decimal or vise versa?
Message-ID:  <20010624095334.A58464@student.uu.se>
In-Reply-To: <Pine.BSF.4.21.0106240039000.86457-100000@java2.dpcsys.com>
References:  <15157.26660.156190.806500@guru.mired.org> <Pine.BSF.4.21.0106240039000.86457-100000@java2.dpcsys.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 24, 2001 at 12:43:15AM -0700, Dan Busarow wrote:
> 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?  

The man page for printf(1) includes the text:

  HISTORY
       The printf command appeared in 4.3BSD-Reno.  It is modeled after the
       standard library function, printf(3). 

A quick look in /usr/share/misc/bsd-family-tree indicates that
4.3BSD-Reno appeared in 1990.

It has been there for a while. :-)

( And it has long been a minor source of irritation for me since on at
least some Unix-systems when I write 'man printf' I get the man-page
for printf(1) instead of the manpage for printf(3) which is usually
what I want.)


( Isn't it amazing what you can find out just by reading the
documentation. :-)  )


-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se


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?20010624095334.A58464>