This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Obvious Tip: Calling Windows "Calc" from Prompt


> -----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@mace /davek> echo $(( 5 * 23 + 17 ))
132
dk@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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]