From owner-freebsd-questions@FreeBSD.ORG Sat Jun 26 01:01:54 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B56416A4CE for ; Sat, 26 Jun 2004 01:01:54 +0000 (GMT) Received: from typhoon.he.net (typhoon.he.net [64.62.229.2]) by mx1.FreeBSD.org (Postfix) with SMTP id E423943D49 for ; Sat, 26 Jun 2004 01:01:53 +0000 (GMT) (envelope-from bill@wiliweld.com) Received: from bsd.billschoolcraft.com ([63.204.157.14]) by typhoon.he.net for ; Fri, 25 Jun 2004 09:18:30 -0700 Date: Fri, 25 Jun 2004 09:18:32 -0700 (PDT) From: Bill Schoolcraft X-X-Sender: bill@bsd.billschoolcraft.com To: Aaron In-Reply-To: <40DC491D.9080502@justaaron.com> Message-ID: <20040625091653.J23771@bsd.billschoolcraft.com> References: <36fb6de804062508417917d0b8@mail.gmail.com> <40DC491D.9080502@justaaron.com> System-ID: [en] (I; FreeBSD 5.2.1-RELEASE #0 x86) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: CD Baby cc: freebsd-questions@freebsd.org Subject: Re: command-line calculator? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jun 2004 01:01:54 -0000 At Fri, 25 Jun 2004 it looks like Aaron composed: > CD Baby wrote: > > What simple built-in command-line tools are available if I want to > > just do some simple math on the command line? > > > > If I'm there in a shell, and need to know what 17 times 36 equals? > > $ 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'. > 17*36 > 612 > ^D I usually try this..... echo 17*36 | bc Then you don't have to start and stop bc. -- Bill Schoolcraft PO Box 210076 -o) San Francisco CA 94121 /\ "UNIX, A Way Of Life." _\_v http://billschoolcraft.com