<?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 scripts: string comparison</title>
	<atom:link href="http://www.tech-recipes.com/rx/209/bournebash-shell-scripts-string-comparison/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/209/bournebash-shell-scripts-string-comparison/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Fri, 10 Feb 2012 12:22:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ben D.,</title>
		<link>http://www.tech-recipes.com/rx/209/bournebash-shell-scripts-string-comparison/comment-page-1/#comment-50366</link>
		<dc:creator>Ben D.,</dc:creator>
		<pubDate>Tue, 11 Oct 2011 22:56:18 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-50366</guid>
		<description>A number of commenters have hinted at this but no one has expressed it with perfect clarity, so I&#039;ll give it a whirl:

&quot;==&quot; is not a valid operator in Bourne Shell.

The string comparison operator is &quot;=&quot;.

Thank you, that is all.</description>
		<content:encoded><![CDATA[<p>A number of commenters have hinted at this but no one has expressed it with perfect clarity, so I&#8217;ll give it a whirl:</p>
<p>&#8220;==&#8221; is not a valid operator in Bourne Shell.</p>
<p>The string comparison operator is &#8220;=&#8221;.</p>
<p>Thank you, that is all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daman Sternpak</title>
		<link>http://www.tech-recipes.com/rx/209/bournebash-shell-scripts-string-comparison/comment-page-1/#comment-48318</link>
		<dc:creator>Daman Sternpak</dc:creator>
		<pubDate>Fri, 06 May 2011 17:53:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-48318</guid>
		<description> I had the same exact problem and it drove me nutty batshiat-insane.  The problem:  you need a space before and after the = sign. </description>
		<content:encoded><![CDATA[<p>I had the same exact problem and it drove me nutty batshiat-insane.  The problem:  you need a space before and after the = sign.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Man1</title>
		<link>http://www.tech-recipes.com/rx/209/bournebash-shell-scripts-string-comparison/comment-page-1/#comment-46633</link>
		<dc:creator>Man1</dc:creator>
		<pubDate>Wed, 23 Feb 2011 16:48:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-46633</guid>
		<description>== never works. bloody are you kidding by posting wrong things over here?</description>
		<content:encoded><![CDATA[<p>== never works. bloody are you kidding by posting wrong things over here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bermic2003</title>
		<link>http://www.tech-recipes.com/rx/209/bournebash-shell-scripts-string-comparison/comment-page-1/#comment-46574</link>
		<dc:creator>Bermic2003</dc:creator>
		<pubDate>Mon, 21 Feb 2011 14:50:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-46574</guid>
		<description>I do this by escaping less and greater sign, and it seems to work fine :

$&gt; [ &quot;a&quot; &gt; &quot;b&quot; ]
$&gt; echo $?
1
$&gt; [ &quot;c&quot; &gt; &quot;b&quot; ]
$&gt; echo $?
0
</description>
		<content:encoded><![CDATA[<p>I do this by escaping less and greater sign, and it seems to work fine :</p>
<p>$&gt; [ "a" &gt; "b" ]<br />
$&gt; echo $?<br />
1<br />
$&gt; [ "c" &gt; "b" ]<br />
$&gt; echo $?<br />
0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tolya_kashuba</title>
		<link>http://www.tech-recipes.com/rx/209/bournebash-shell-scripts-string-comparison/comment-page-1/#comment-45574</link>
		<dc:creator>Tolya_kashuba</dc:creator>
		<pubDate>Sun, 16 Jan 2011 03:46:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-45574</guid>
		<description>How can I compare two strings on less or greater? signs &gt; and </description>
		<content:encoded><![CDATA[<p>How can I compare two strings on less or greater? signs &gt; and</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.tech-recipes.com/rx/209/bournebash-shell-scripts-string-comparison/comment-page-1/#comment-44069</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 18 Nov 2010 19:27:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-44069</guid>
		<description>Thanks for the comments.  Somehow this article fell off our radar and I didn&#039;t realize we had an issue with it.  I really appreciate Martin for dropping me the email about the issue.  The original tutorial has been updated.  </description>
		<content:encoded><![CDATA[<p>Thanks for the comments.  Somehow this article fell off our radar and I didn&#8217;t realize we had an issue with it.  I really appreciate Martin for dropping me the email about the issue.  The original tutorial has been updated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Smudge</title>
		<link>http://www.tech-recipes.com/rx/209/bournebash-shell-scripts-string-comparison/comment-page-1/#comment-42573</link>
		<dc:creator>Smudge</dc:creator>
		<pubDate>Tue, 21 Sep 2010 19:46:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-42573</guid>
		<description>Wow, have you geeks ever thought about getting along?</description>
		<content:encoded><![CDATA[<p>Wow, have you geeks ever thought about getting along?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Achu</title>
		<link>http://www.tech-recipes.com/rx/209/bournebash-shell-scripts-string-comparison/comment-page-1/#comment-39600</link>
		<dc:creator>Achu</dc:creator>
		<pubDate>Mon, 07 Jun 2010 09:57:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-39600</guid>
		<description>both the commands are not working, it throwing an error
./hello: [one=one]: not found

( var value &#039;one&#039;)</description>
		<content:encoded><![CDATA[<p>both the commands are not working, it throwing an error<br />
./hello: [one=one]: not found</p>
<p>( var value &#8216;one&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kousalya</title>
		<link>http://www.tech-recipes.com/rx/209/bournebash-shell-scripts-string-comparison/comment-page-1/#comment-39113</link>
		<dc:creator>Kousalya</dc:creator>
		<pubDate>Mon, 17 May 2010 09:51:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-39113</guid>
		<description>you can compare two string variables using
if [ $var1 == $var2 ] 
if [ $var1 = $var2 ]</description>
		<content:encoded><![CDATA[<p>you can compare two string variables using<br />
if [ $var1 == $var2 ]<br />
if [ $var1 = $var2 ]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kousalya</title>
		<link>http://www.tech-recipes.com/rx/209/bournebash-shell-scripts-string-comparison/comment-page-1/#comment-39112</link>
		<dc:creator>Kousalya</dc:creator>
		<pubDate>Mon, 17 May 2010 09:42:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-39112</guid>
		<description>you can compare two string variables using
if [ $var1 == $var2 ]</description>
		<content:encoded><![CDATA[<p>you can compare two string variables using<br />
if [ $var1 == $var2 ]</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 5/17 queries in 0.903 seconds using memcached
Object Caching 418/421 objects using memcached

Served from: www.tech-recipes.com @ 2012-02-10 06:51:54 -->
