From owner-freebsd-questions@FreeBSD.ORG Sat Feb 19 16:33:12 2005 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 BD9DC16A4CE for ; Sat, 19 Feb 2005 16:33:12 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E7CB43D41 for ; Sat, 19 Feb 2005 16:33:12 +0000 (GMT) (envelope-from jon.drews@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so641757wri for ; Sat, 19 Feb 2005 08:33:11 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=gtnQf1eXxinieUwWA1Ilux1VUgLP2l+ugJVAIxcPmxWRbwyyk2206f/RJXYxA9+1G3HjJOaTemypsZJNaORSBRhdyqQekciXKyqJZKneoT0xKA85bgLGbwoA1uQP18e98nyvguh41ixMrTUfcuY/GRjDvMThLGJCR2v1J3D+sXE= Received: by 10.54.39.32 with SMTP id m32mr57071wrm; Sat, 19 Feb 2005 08:33:11 -0800 (PST) Received: by 10.54.54.8 with HTTP; Sat, 19 Feb 2005 08:33:11 -0800 (PST) Message-ID: <8cb27cbf050219083335c55752@mail.gmail.com> Date: Sat, 19 Feb 2005 09:33:11 -0700 From: Jon Drews To: freebsd-questions In-Reply-To: <20050219125559.3bb98715@ale.varnet.bsd> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20050219125559.3bb98715@ale.varnet.bsd> Subject: Re: How to handle numeric variables in sh? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jon Drews List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Feb 2005 16:33:12 -0000 Ale: On Sat, 19 Feb 2005 12:55:59 -0300, Alejandro Pulver wrote: > Hello, > > Is there a way to handle numeric variables (addition, multiplication, etc.) in 'sh' (or throught an external command)? Here is a good short "HowTo" on calling bc: ----------------------------------------------------------------- >> Shell Tip: Calculating with large numbers using "bc" ----------------------------------------------------------------- http://www.shelldorado.com/newsletter/issues/2002-3-Aug.html Shelldorado is a great reference site: http://www.shelldorado.com/