<?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: Using variables in Unix shell scripts</title>
	<atom:link href="http://www.unixtutorial.org/2008/05/variables-in-unix-shell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unixtutorial.org/2008/05/variables-in-unix-shell/</link>
	<description>Learn UNIX</description>
	<lastBuildDate>Thu, 26 Jan 2012 23:00:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: kavita</title>
		<link>http://www.unixtutorial.org/2008/05/variables-in-unix-shell/comment-page-1/#comment-6991</link>
		<dc:creator>kavita</dc:creator>
		<pubDate>Tue, 29 Mar 2011 06:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=48#comment-6991</guid>
		<description>I want to name html file as tp5_7.html where s=5 and e=7. I tried using tp$s_$e.html. but it gives me only tp7.html. can you please help me here?</description>
		<content:encoded><![CDATA[<p>I want to name html file as tp5_7.html where s=5 and e=7. I tried using tp$s_$e.html. but it gives me only tp7.html. can you please help me here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: suman</title>
		<link>http://www.unixtutorial.org/2008/05/variables-in-unix-shell/comment-page-1/#comment-6053</link>
		<dc:creator>suman</dc:creator>
		<pubDate>Sat, 05 Sep 2009 09:16:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=48#comment-6053</guid>
		<description>Hi, i want to know the storage capacity of a shell variable i.e how many bytes they ocupy in memory?</description>
		<content:encoded><![CDATA[<p>Hi, i want to know the storage capacity of a shell variable i.e how many bytes they ocupy in memory?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chandra</title>
		<link>http://www.unixtutorial.org/2008/05/variables-in-unix-shell/comment-page-1/#comment-5598</link>
		<dc:creator>Chandra</dc:creator>
		<pubDate>Tue, 21 Jul 2009 09:27:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=48#comment-5598</guid>
		<description>i think
if [[ &quot;$Dir&quot; = &quot;New&quot; ]]; then
echo &quot;Correct&quot;
fi

is much better, thanks chandra</description>
		<content:encoded><![CDATA[<p>i think<br />
if [[ "$Dir" = "New" ]]; then<br />
echo "Correct"<br />
fi</p>
<p>is much better, thanks chandra</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chandra Sekhar</title>
		<link>http://www.unixtutorial.org/2008/05/variables-in-unix-shell/comment-page-1/#comment-5190</link>
		<dc:creator>Chandra Sekhar</dc:creator>
		<pubDate>Thu, 25 Jun 2009 02:47:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=48#comment-5190</guid>
		<description>I was able to find the solution myself.... :)
I changed the code as follows and it works!!

if [[ &quot;$Dir&quot; = &quot;New&quot; ]]; then
    echo &quot;Correct&quot;
fi</description>
		<content:encoded><![CDATA[<p>I was able to find the solution myself&#8230;. <img src='http://unixtutorial.s3.amazonaws.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I changed the code as follows and it works!!</p>
<p>if [[ "$Dir" = "New" ]]; then<br />
    echo "Correct"<br />
fi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chandra Sekhar</title>
		<link>http://www.unixtutorial.org/2008/05/variables-in-unix-shell/comment-page-1/#comment-5169</link>
		<dc:creator>Chandra Sekhar</dc:creator>
		<pubDate>Wed, 24 Jun 2009 07:21:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=48#comment-5169</guid>
		<description>FYI: This is how the code is written
if [ &quot;$Dir&quot; = &quot;New&quot; ]
then
    echo &quot;Correct&quot;
fi

when Dir&#039;s value is ! then it throws the following error:
new_test.sh[26]: [: New: unknown operator</description>
		<content:encoded><![CDATA[<p>FYI: This is how the code is written<br />
if [ "$Dir" = "New" ]<br />
then<br />
    echo "Correct"<br />
fi</p>
<p>when Dir's value is ! then it throws the following error:<br />
new_test.sh[26]: [: New: unknown operator</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chandra Sekhar</title>
		<link>http://www.unixtutorial.org/2008/05/variables-in-unix-shell/comment-page-1/#comment-5168</link>
		<dc:creator>Chandra Sekhar</dc:creator>
		<pubDate>Wed, 24 Jun 2009 07:13:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=48#comment-5168</guid>
		<description>Hi. Could someone explain me how to use ! as a variable in unix if command? (It always complains me that unknown operator when I compare two variables and one variable&#039;s value is !)

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi. Could someone explain me how to use ! as a variable in unix if command? (It always complains me that unknown operator when I compare two variables and one variable's value is !)</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Unix scripts: how to sum numbers up &#8212; UNIX Tutorial: Learn UNIX</title>
		<link>http://www.unixtutorial.org/2008/05/variables-in-unix-shell/comment-page-1/#comment-4991</link>
		<dc:creator>Unix scripts: how to sum numbers up &#8212; UNIX Tutorial: Learn UNIX</dc:creator>
		<pubDate>Tue, 16 Jun 2009 08:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=48#comment-4991</guid>
		<description>[...] Variables in Unix shells [...]</description>
		<content:encoded><![CDATA[<p>[...] Variables in Unix shells [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sree</title>
		<link>http://www.unixtutorial.org/2008/05/variables-in-unix-shell/comment-page-1/#comment-4866</link>
		<dc:creator>sree</dc:creator>
		<pubDate>Tue, 09 Jun 2009 12:11:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=48#comment-4866</guid>
		<description>Thanks for the article Gleb.
Could you please tell me the difference between the two statements

var1=$var2 
var1={$var2}</description>
		<content:encoded><![CDATA[<p>Thanks for the article Gleb.<br />
Could you please tell me the difference between the two statements</p>
<p>var1=$var2<br />
var1={$var2}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gleb Reys</title>
		<link>http://www.unixtutorial.org/2008/05/variables-in-unix-shell/comment-page-1/#comment-2056</link>
		<dc:creator>Gleb Reys</dc:creator>
		<pubDate>Thu, 26 Feb 2009 14:44:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=48#comment-2056</guid>
		<description>You&#039;re welcome, Adolfo!</description>
		<content:encoded><![CDATA[<p>You're welcome, Adolfo!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adolfo.trinca</title>
		<link>http://www.unixtutorial.org/2008/05/variables-in-unix-shell/comment-page-1/#comment-2018</link>
		<dc:creator>adolfo.trinca</dc:creator>
		<pubDate>Tue, 24 Feb 2009 10:51:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=48#comment-2018</guid>
		<description>thank you</description>
		<content:encoded><![CDATA[<p>thank you</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/15 queries in 0.006 seconds using disk: basic
Object Caching 415/416 objects using disk: basic
Content Delivery Network via Amazon Web Services: S3: unixtutorial.s3.amazonaws.com

Served from: www.unixtutorial.org @ 2012-02-08 00:48:22 -->
