<?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: Hello Script for bash</title>
	<atom:link href="http://www.bin-co.com/blog/2008/05/hello-script-for-bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bin-co.com/blog/2008/05/hello-script-for-bash/</link>
	<description>Learn about the latest in Web Development - as soon as I do.</description>
	<lastBuildDate>Wed, 17 Mar 2010 23:13:18 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Binny V A</title>
		<link>http://www.bin-co.com/blog/2008/05/hello-script-for-bash/comment-page-1/#comment-637</link>
		<dc:creator>Binny V A</dc:creator>
		<pubDate>Mon, 09 Jun 2008 07:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=107#comment-637</guid>
		<description>@Emil
&gt; First of all, please consider posting normal quotes in code
I am innocent of this crime. I used normal single and double quote in the code. But WordPress converts them into those fancy html quotes.

And thanks for the other pointers - especially...
&gt; contents=$(&lt; Hello.sh);
This will come in handy.</description>
		<content:encoded><![CDATA[<p>@Emil<br />
> First of all, please consider posting normal quotes in code<br />
I am innocent of this crime. I used normal single and double quote in the code. But WordPress converts them into those fancy html quotes.</p>
<p>And thanks for the other pointers &#8211; especially&#8230;<br />
> contents=$(< Hello.sh);<br />
This will come in handy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emil</title>
		<link>http://www.bin-co.com/blog/2008/05/hello-script-for-bash/comment-page-1/#comment-636</link>
		<dc:creator>Emil</dc:creator>
		<pubDate>Sun, 08 Jun 2008 22:58:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=107#comment-636</guid>
		<description>First of all, please consider posting normal quotes in code. Funny html-quotes may look nice, but bash does not understand them and so we have to change them by hand (which is rather annoying :)

Now to the actual code ..

If you know how many iterations you need, the &quot;for ((i=0; i  contents=`cat Hello.sh` #For some reason, I’m losing all the \n’s in the file.
&gt; echo “Hello has `echo $contents&#124;wc -m` chars” # Or wc -m Hello.sh

contents=$(&lt; Hello.sh); # You won a &quot;useless use of cat&quot;-award
echo &quot;Hello has $(wc -m &lt;&lt; string=”Hello World”
&gt; evil=`echo $string &#124; grep ‘^Hell’`
&gt; if [ &quot;$evil&quot; != &quot;&quot; ]; then
&gt; 	echo “Yup - its evil”
&gt; fi

string=&quot;Hello World&quot;
if grep &quot;^Hell&quot; &lt;&lt; echo “Hello World” &#124; sed -e ’s/l//g’ #Will return Heo Word

echo &quot;${string//l/}&quot; # assuming $string is still valid


Cheers, Emil</description>
		<content:encoded><![CDATA[<p>First of all, please consider posting normal quotes in code. Funny html-quotes may look nice, but bash does not understand them and so we have to change them by hand (which is rather annoying <img src='http://www.bin-co.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Now to the actual code ..</p>
<p>If you know how many iterations you need, the &#8220;for ((i=0; i  contents=`cat Hello.sh` #For some reason, I’m losing all the \n’s in the file.<br />
&gt; echo “Hello has `echo $contents|wc -m` chars” # Or wc -m Hello.sh</p>
<p>contents=$(&lt; Hello.sh); # You won a &#8220;useless use of cat&#8221;-award<br />
echo &#8220;Hello has $(wc -m &lt;&lt; string=”Hello World”<br />
&gt; evil=`echo $string | grep ‘^Hell’`<br />
&gt; if [ "$evil" != "" ]; then<br />
&gt; 	echo “Yup &#8211; its evil”<br />
&gt; fi</p>
<p>string=&#8221;Hello World&#8221;<br />
if grep &#8220;^Hell&#8221; &lt;&lt; echo “Hello World” | sed -e ’s/l//g’ #Will return Heo Word</p>
<p>echo &#8220;${string//l/}&#8221; # assuming $string is still valid</p>
<p>Cheers, Emil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niyaz PK</title>
		<link>http://www.bin-co.com/blog/2008/05/hello-script-for-bash/comment-page-1/#comment-604</link>
		<dc:creator>Niyaz PK</dc:creator>
		<pubDate>Mon, 19 May 2008 10:29:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=107#comment-604</guid>
		<description>You are working a lot Binny..
:)
Thx.</description>
		<content:encoded><![CDATA[<p>You are working a lot Binny..<br />
 <img src='http://www.bin-co.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Thx.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
