<?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: How to write infinite loop in Bash using for or while statement</title>
	<atom:link href="http://www.techpulp.com/blog/2008/10/how-to-write-infinite-loop-in-bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techpulp.com/blog/2008/10/how-to-write-infinite-loop-in-bash/</link>
	<description>The pulp of technology</description>
	<lastBuildDate>Sat, 12 May 2012 22:10:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Nick</title>
		<link>http://www.techpulp.com/blog/2008/10/how-to-write-infinite-loop-in-bash/#comment-133</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Sun, 23 Jan 2011 08:49:13 +0000</pubDate>
		<guid isPermaLink="false">http://techpulp.com/?p=119#comment-133</guid>
		<description>More simplified example can be

for i in `seq  1 10`; do echo loop $i; done


Output:

nick@nick-desktop ~$ for i in `seq  1 10`; do echo loop $i; done
loop 1
loop 2
loop 3
loop 4
loop 5
loop 6
loop 7
loop 8
loop 9
loop 10
nick@nick-desktop ~$ 


In the above example, &quot;seq&quot; command is used to generate a sequence of numbers with start and end  limits.</description>
		<content:encoded><![CDATA[<p>More simplified example can be</p>
<p>for i in `seq  1 10`; do echo loop $i; done</p>
<p>Output:</p>
<p>nick@nick-desktop ~$ for i in `seq  1 10`; do echo loop $i; done<br />
loop 1<br />
loop 2<br />
loop 3<br />
loop 4<br />
loop 5<br />
loop 6<br />
loop 7<br />
loop 8<br />
loop 9<br />
loop 10<br />
nick@nick-desktop ~$ </p>
<p>In the above example, &#8220;seq&#8221; command is used to generate a sequence of numbers with start and end  limits.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neo</title>
		<link>http://www.techpulp.com/blog/2008/10/how-to-write-infinite-loop-in-bash/#comment-131</link>
		<dc:creator>Neo</dc:creator>
		<pubDate>Sun, 23 Jan 2011 08:28:48 +0000</pubDate>
		<guid isPermaLink="false">http://techpulp.com/?p=119#comment-131</guid>
		<description>Simplified yet readable version of same example:


#!/bin/bash

i=1
while [ &quot;$i&quot; != &quot;10&quot; ];
do
        i=`expr $i + 1`
        echo loop $i
done

echo end of shell script
</description>
		<content:encoded><![CDATA[<p>Simplified yet readable version of same example:</p>
<p>#!/bin/bash</p>
<p>i=1<br />
while [ "$i" != "10" ];<br />
do<br />
        i=`expr $i + 1`<br />
        echo loop $i<br />
done</p>
<p>echo end of shell script</p>
]]></content:encoded>
	</item>
</channel>
</rss>

