<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Bourne/bash shell script functions</title>
	<atom:link href="http://www.tech-recipes.com/rx/541/bournebash-shell-script-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/541/bournebash-shell-script-functions/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Thu, 09 Feb 2012 21:01:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: guille</title>
		<link>http://www.tech-recipes.com/rx/541/bournebash-shell-script-functions/comment-page-1/#comment-35966</link>
		<dc:creator>guille</dc:creator>
		<pubDate>Thu, 03 Dec 2009 05:17:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-35966</guid>
		<description>Nice tutorial, but i have a lot of problem with control structures in the { } of functions. Today i have a exam, :(
Thks a lot! and good blog!</description>
		<content:encoded><![CDATA[<p>Nice tutorial, but i have a lot of problem with control structures in the { } of functions. Today i have a exam, :(<br />
Thks a lot! and good blog!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Penton</title>
		<link>http://www.tech-recipes.com/rx/541/bournebash-shell-script-functions/comment-page-1/#comment-34843</link>
		<dc:creator>Penton</dc:creator>
		<pubDate>Wed, 30 Sep 2009 09:21:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-34843</guid>
		<description>You can use return to return the result generated within a function. Please read more about this within the following URL:

http://www.faqs.org/docs/abs/HTML/functions.html
(Example 23-3. Maximum of two numbers)</description>
		<content:encoded><![CDATA[<p>You can use return to return the result generated within a function. Please read more about this within the following URL:</p>
<p><a href="http://www.faqs.org/docs/abs/HTML/functions.html" rel="nofollow">http://www.faqs.org/docs/abs/HTML/functions.html</a><br />
(Example 23-3. Maximum of two numbers)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.tech-recipes.com/rx/541/bournebash-shell-script-functions/comment-page-1/#comment-34721</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 23 Sep 2009 05:46:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-34721</guid>
		<description>i found some problem with the second code 
so i modified like this :)

#!/bin/bash
sum()
{	
	if [ -z &quot;$2&quot; ]
	then 
		echo &quot;sum: $1&quot;
	else 
		local a=`expr $1 + $2`
		shift 2
		sum $a $@
	fi
}
sum 3 5 34</description>
		<content:encoded><![CDATA[<p>i found some problem with the second code<br />
so i modified like this :)</p>
<p>#!/bin/bash<br />
sum()<br />
{<br />
	if [ -z "$2" ]<br />
	then<br />
		echo &#8220;sum: $1&#8243;<br />
	else<br />
		local a=`expr $1 + $2`<br />
		shift 2<br />
		sum $a $@<br />
	fi<br />
}<br />
sum 3 5 34</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vaiju</title>
		<link>http://www.tech-recipes.com/rx/541/bournebash-shell-script-functions/comment-page-1/#comment-32296</link>
		<dc:creator>vaiju</dc:creator>
		<pubDate>Thu, 30 Jul 2009 09:52:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-32296</guid>
		<description>The article was very useful. Thanks a ton !!!</description>
		<content:encoded><![CDATA[<p>The article was very useful. Thanks a ton !!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khushbu</title>
		<link>http://www.tech-recipes.com/rx/541/bournebash-shell-script-functions/comment-page-1/#comment-25555</link>
		<dc:creator>Khushbu</dc:creator>
		<pubDate>Mon, 01 Dec 2008 07:06:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-25555</guid>
		<description>wat will be the output of 
[-z &quot;$2&quot;]; echo $;
sh amit</description>
		<content:encoded><![CDATA[<p>wat will be the output of<br />
[-z "$2"]; echo $;<br />
sh amit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kishroe</title>
		<link>http://www.tech-recipes.com/rx/541/bournebash-shell-script-functions/comment-page-1/#comment-25281</link>
		<dc:creator>kishroe</dc:creator>
		<pubDate>Fri, 21 Nov 2008 05:57:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-25281</guid>
		<description>simple to understand and very good for bushing up the unix</description>
		<content:encoded><![CDATA[<p>simple to understand and very good for bushing up the unix</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 13/13 queries in 0.021 seconds using memcached
Object Caching 344/347 objects using memcached

Served from: www.tech-recipes.com @ 2012-02-10 02:48:04 -->
