From owner-freebsd-questions Sat Jun 23 20:23:18 2001 Delivered-To: freebsd-questions@freebsd.org Received: from avocet.mail.pas.earthlink.net (avocet.mail.pas.earthlink.net [207.217.121.50]) by hub.freebsd.org (Postfix) with ESMTP id E074337B401 for ; Sat, 23 Jun 2001 20:23:14 -0700 (PDT) (envelope-from cjc@earthlink.net) Received: from blossom.cjclark.org (dialup-209.245.142.115.Dial1.SanJose1.Level3.net [209.245.142.115]) by avocet.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id UAA06372; Sat, 23 Jun 2001 20:22:51 -0700 (PDT) Received: (from cjc@localhost) by blossom.cjclark.org (8.11.4/8.11.3) id f5O3O1T35570; Sat, 23 Jun 2001 20:24:01 -0700 (PDT) (envelope-from cjc) Date: Sat, 23 Jun 2001 20:24:01 -0700 From: "Crist J. Clark" To: tyler spivey Cc: freebsd-questions@FreeBSD.ORG Subject: Re: program to convert hex to decimal or vise versa? Message-ID: <20010623202401.D30874@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <200106232041.f5NKft938687@home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200106232041.f5NKft938687@home.com>; from tspivey8@home.com on Sat, Jun 23, 2001 at 04:41:55PM -0400 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 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