From owner-freebsd-questions@FreeBSD.ORG Fri Jun 25 18:33:33 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 3628316A4CE for ; Fri, 25 Jun 2004 18:33:33 +0000 (GMT) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A4E543D48 for ; Fri, 25 Jun 2004 18:33:32 +0000 (GMT) (envelope-from parv@chvlva.adelphia.net) Received: from default.chvlva.adelphia.net ([69.160.73.175]) by mta10.adelphia.netESMTP <20040625183306.EWIM12887.mta10.adelphia.net@default.chvlva.adelphia.net>; Fri, 25 Jun 2004 14:33:06 -0400 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id A844D578E; Fri, 25 Jun 2004 14:34:29 -0400 (EDT) Date: Fri, 25 Jun 2004 14:34:29 -0400 From: Parv To: CD Baby Message-ID: <20040625183429.GA10616@moo.holy.cow> Mail-Followup-To: CD Baby , freebsd-questions@freebsd.org References: <36fb6de804062508417917d0b8@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <36fb6de804062508417917d0b8@mail.gmail.com> 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: Fri, 25 Jun 2004 18:33:33 -0000 in message <36fb6de804062508417917d0b8@mail.gmail.com>, wrote CD Baby thusly... > > 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? In addition to [bd]c(1) ... Perl: perl -e 'print +(17 * 36)' awk: echo |awk '{print 17 * 36}' - Parv --