From owner-freebsd-questions Sat Jun 23 21:10:16 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-141-144.mmcable.com [24.27.141.144]) by hub.freebsd.org (Postfix) with SMTP id 0D2BE37B401 for ; Sat, 23 Jun 2001 21:10:13 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 68277 invoked by uid 100); 24 Jun 2001 04:10:12 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15157.26660.156190.806500@guru.mired.org> Date: Sat, 23 Jun 2001 23:10:12 -0500 To: tyler spivey Cc: questions@freebsd.org Subject: Re: program to convert hex to decimal or vise versa? In-Reply-To: <100013324@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ 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 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 > 1A 26 > BCDE 48350 > F 15 > obase = 2 > 1F 11111 The gnu version no longer has the ability to deal with bases < 2, but those are more amusing than useful. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message