Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Dave Korn" To: Subject: RE: Obvious Tip: Calling Windows "Calc" from Prompt Date: Fri, 6 Aug 2004 18:42:27 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: Message-ID: X-OriginalArrivalTime: 06 Aug 2004 17:42:28.0046 (UTC) FILETIME=[BDCB5EE0:01C47BDC] > -----Original Message----- > From: cygwin-owner On Behalf Of zzapper > Sent: 06 August 2004 18:34 > On Thu, 05 Aug 2004 22:53:20 +0100, wrote: > > You can also script bc > echo 2+4 | bc -l For the quickest command-line calculator, if you're using bash you can just use arithmetic expansion, e.g: dk AT mace /davek> echo $(( 5 * 23 + 17 )) 132 dk AT mace /davek> cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/