delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/06/15:50:10

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: zzapper <david AT tvis DOT co DOT uk>
Subject: Re: Obvious Tip: Calling Windows "Calc" from Prompt
Date: Fri, 06 Aug 2004 20:49:49 +0100
Lines: 38
Message-ID: <shn7h01kssf37kr328vvj2qurk4gua5gt1@4ax.com>
References: <v5g7h09d3st0o42346vp255d1hntf9u4g0 AT 4ax DOT com> <NUTMEG5ZEUrXaIL9S3d00000c49 AT NUTMEG DOT CAM DOT ARTIMI DOT COM>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: cpc3-oxfd4-4-0-cust194.oxfd.cable.ntl.com
X-Newsreader: Forte Agent 2.0/32.652 trialware
X-IsSubscribed: yes

On Fri, 6 Aug 2004 18:42:27 +0100,  wrote:

>> -----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>
>
>
DK
Fantastic, It always amazes how (at the risk sometimes of getting a right-royal slagging off) how a
pushing an idea in a NG, can bring forth so many good ideas and variants.

I had been using Win-Calc for years, but often had to repeat calculations (VaT etc) because I'd
already forgotten the result. However if you write it at the prompt with your echo idea, it's
sitting there in your history to be recalled-re-editted.

Well that's good-bye to yet another Win-App

echo "Thanx Dave Korn,"

zzapper (vim, cygwin, wiki & zsh)
--

vim -c ":%s%s*%CyrnfrTfcbafbeROenzSZbbyranne%|:%s)[R-T]) )Ig|:norm G1VGg?"

http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019