From owner-freebsd-questions Sun Jun 24 0:43:50 2001 Delivered-To: freebsd-questions@freebsd.org Received: from java2.dpcsys.com (java2.dpcsys.com [206.16.184.5]) by hub.freebsd.org (Postfix) with ESMTP id 8E78837B401 for ; Sun, 24 Jun 2001 00:43:48 -0700 (PDT) (envelope-from dan@dpcsys.com) Received: from localhost (localhost [127.0.0.1]) by java2.dpcsys.com (8.11.1/8.11.1) with ESMTP id f5O7hFO93322; Sun, 24 Jun 2001 00:43:15 -0700 (PDT) Date: Sun, 24 Jun 2001 00:43:15 -0700 (PDT) From: Dan Busarow To: Mike Meyer Cc: tyler spivey , questions@FreeBSD.ORG Subject: Re: program to convert hex to decimal or vise versa? In-Reply-To: <15157.26660.156190.806500@guru.mired.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Jun 23, Mike Meyer wrote: > tyler spivey 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