<?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: Bash shell script to convert string from lower to upper case and vice versa</title>
	<atom:link href="http://techpulp.com/2008/12/bash-shell-script-to-convert-string-from-lower-to-upper-case-and-vice-versa/feed/" rel="self" type="application/rss+xml" />
	<link>http://techpulp.com/2008/12/bash-shell-script-to-convert-string-from-lower-to-upper-case-and-vice-versa/</link>
	<description>The pulp of technology</description>
	<pubDate>Mon, 22 Mar 2010 09:43:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Neo</title>
		<link>http://techpulp.com/2008/12/bash-shell-script-to-convert-string-from-lower-to-upper-case-and-vice-versa/comment-page-1/#comment-417</link>
		<dc:creator>Neo</dc:creator>
		<pubDate>Sat, 01 Aug 2009 12:00:34 +0000</pubDate>
		<guid isPermaLink="false">http://techpulp.com/?p=328#comment-417</guid>
		<description>Nope. The example given in the article assumes the function to be placed in a bash script. But you are trying to fit all three lines in a single line. So you need a semi-colon.

See the following example:

[neo@techpulp ~]# toUpper() { echo $1 &#124; tr “[:lower:]” “[:upper:]” }
&#62; bash: syntax error: unexpected end of file
[neo@techpulp ~]# toUpper() { echo $1 &#124; tr “[:lower:]” “[:upper:]”; }
[neo@techpulp ~]#

You can see in the first command where a semi-colon is not given, the bash is still expecting some input so I had to press Ctrl+D to get out.

But in the second command where a semi-colon is given, bash is expecting no more input.</description>
		<content:encoded><![CDATA[<p>Nope. The example given in the article assumes the function to be placed in a bash script. But you are trying to fit all three lines in a single line. So you need a semi-colon.</p>
<p>See the following example:</p>
<p>[neo@techpulp ~]# toUpper() { echo $1 | tr “[:lower:]” “[:upper:]” }<br />
&gt; bash: syntax error: unexpected end of file<br />
[neo@techpulp ~]# toUpper() { echo $1 | tr “[:lower:]” “[:upper:]”; }<br />
[neo@techpulp ~]#</p>
<p>You can see in the first command where a semi-colon is not given, the bash is still expecting some input so I had to press Ctrl+D to get out.</p>
<p>But in the second command where a semi-colon is given, bash is expecting no more input.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitri Arkhipov</title>
		<link>http://techpulp.com/2008/12/bash-shell-script-to-convert-string-from-lower-to-upper-case-and-vice-versa/comment-page-1/#comment-416</link>
		<dc:creator>Dmitri Arkhipov</dc:creator>
		<pubDate>Thu, 30 Jul 2009 23:30:39 +0000</pubDate>
		<guid isPermaLink="false">http://techpulp.com/?p=328#comment-416</guid>
		<description>Maybe it's because I'm using cygwin, but I had to do:
toUpper() { echo $1 &#124; tr  "[:lower:]" "[:upper:]" ; }

Note the semicolon...</description>
		<content:encoded><![CDATA[<p>Maybe it&#8217;s because I&#8217;m using cygwin, but I had to do:<br />
toUpper() { echo $1 | tr  &#8220;[:lower:]&#8221; &#8220;[:upper:]&#8221; ; }</p>
<p>Note the semicolon&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
