<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: BASH Tip: Alternative to expr for arithmetic</title>
	<atom:link href="http://muffinresearch.co.uk/archives/2007/08/30/bash-tip-alternative-to-expr-for-arithmetic/feed/" rel="self" type="application/rss+xml" />
	<link>http://muffinresearch.co.uk/archives/2007/08/30/bash-tip-alternative-to-expr-for-arithmetic/</link>
	<description>the personal blog of Stuart Colville covering modern web development techniques and best practices</description>
	<pubDate>Thu, 16 Oct 2008 03:39:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: akn</title>
		<link>http://muffinresearch.co.uk/archives/2007/08/30/bash-tip-alternative-to-expr-for-arithmetic/#comment-64553</link>
		<dc:creator>akn</dc:creator>
		<pubDate>Tue, 19 Aug 2008 16:55:03 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/08/30/bash-tip-alternative-to-expr-for-arithmetic/#comment-64553</guid>
		<description>Hi, 

Thanks for that tip. This was very useful i.e. to have a simplified replacement for the messy expr. In fact I didn't know how to do compound statements using expr. For example how to do this expression (var1 - var2)*100/var1, since bash complains about those paranthesis. But using the other alternative I could easily compute the value as $[(var1-var2)*100/var2]. You don't have to worry about escaping the *, + etc. in the expression. It is so easy to use! Thanks for the tip.</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>Thanks for that tip. This was very useful i.e. to have a simplified replacement for the messy expr. In fact I didn&#8217;t know how to do compound statements using expr. For example how to do this expression (var1 - var2)*100/var1, since bash complains about those paranthesis. But using the other alternative I could easily compute the value as $[(var1-var2)*100/var2]. You don&#8217;t have to worry about escaping the *, + etc. in the expression. It is so easy to use! Thanks for the tip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kenan Bektas</title>
		<link>http://muffinresearch.co.uk/archives/2007/08/30/bash-tip-alternative-to-expr-for-arithmetic/#comment-58112</link>
		<dc:creator>Kenan Bektas</dc:creator>
		<pubDate>Sun, 02 Sep 2007 05:34:23 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/08/30/bash-tip-alternative-to-expr-for-arithmetic/#comment-58112</guid>
		<description>This hint is totally cool.

Thanks,.

-Deniz Gezmis</description>
		<content:encoded><![CDATA[<p>This hint is totally cool.</p>
<p>Thanks,.</p>
<p>-Deniz Gezmis</p>
]]></content:encoded>
	</item>
</channel>
</rss>
