From owner-freebsd-questions@FreeBSD.ORG Sat Jun 26 02:50:04 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 ACB2116A4CE for ; Sat, 26 Jun 2004 02:50:04 +0000 (GMT) Received: from ns3.tele-kom.ru (ns3.tele-kom.ru [217.107.251.251]) by mx1.FreeBSD.org (Postfix) with SMTP id 65A1B43D53 for ; Sat, 26 Jun 2004 02:50:03 +0000 (GMT) (envelope-from doublef@tele-kom.ru) Received: (qmail 18566 invoked from network); 26 Jun 2004 02:48:48 -0000 Received: from mx.tele-kom.ru (213.80.148.6) by ns.tele-kom.ru with SMTP; 26 Jun 2004 02:48:48 -0000 Received: (qmail 89381 invoked by uid 555); 26 Jun 2004 02:49:55 -0000 Received: from shark (213.80.149.210) by t-k.ru with TeleMail/2 id 1088218193-89362 for freebsd-questions@freebsd.org; Sat, 26 Jun 06:49:53 2004 +0400 (MSD) Received: by shark (Postfix, from userid 1000) id 898A338D; Sat, 26 Jun 2004 06:49:36 +0400 (MSD) Date: Sat, 26 Jun 2004 06:49:35 +0400 From: Sergey Zaharchenko To: Warren Block Message-ID: <20040626024935.GA16644@shark.localdomain> Mail-Followup-To: Sergey Zaharchenko , Warren Block , Parv , CD Baby , freebsd-questions@freebsd.org References: <36fb6de804062508417917d0b8@mail.gmail.com> <20040625183429.GA10616@moo.holy.cow> <20040625132917.U21716@wonkity.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline In-Reply-To: <20040625132917.U21716@wonkity.com> User-Agent: Mutt/1.4.2.1i 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 02:50:04 -0000 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 25, 2004 at 01:31:33PM -0600, Warren Block probably wrote: > On Fri, 25 Jun 2004, Parv wrote: >=20 > > Perl: > > perl -e 'print +(17 * 36)' >=20 > Or just >=20 > perl -e 'print 17 * 36' >=20 > but for neatness >=20 > perl -e 'print 17 * 36, "\n"' Or just $ sh -c 'echo $((17*36))' 612 or $ echo $((17*36)) if you use sh as your interactive shell. --=20 DoubleF The first time, it's a KLUDGE! The second, a trick. Later, it's a well-established technique! -- Mike Broido, Intermetrics --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA3OQ9wo7hT/9lVdwRAiLUAJ9hEeVjggG6lH2R25HHqIoEe5ngPwCfe2Fs B9spB9/E654ELed05Od7DYU= =z0i4 -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE--