<?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 URI parser using SED</title>
	<atom:link href="http://valeriu.palos.ro/219/bash-uri-parser-using-sed/feed/" rel="self" type="application/rss+xml" />
	<link>http://valeriu.palos.ro/219/bash-uri-parser-using-sed/</link>
	<description>Milk, cookies and segmentation faults.</description>
	<lastBuildDate>Sun, 29 Jan 2012 13:16:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Dan Fekete</title>
		<link>http://valeriu.palos.ro/219/bash-uri-parser-using-sed/comment-page-1/#comment-27</link>
		<dc:creator>Dan Fekete</dc:creator>
		<pubDate>Wed, 03 Feb 2010 14:47:51 +0000</pubDate>
		<guid isPermaLink="false">http://valeriu.palos.ro/?p=219#comment-27</guid>
		<description>Wow, thanks for the fast response.

I checked out your newer version and it looks like a much better solution. So I think I&#039;ll just get to work implementing it into my project
(http://thefekete.net/gitweb/?p=gitWebTools.git;a=blob;f=publish;h=b5c4f6dedda2ebf2180a889a937e22878c833449).

I&#039;ll leave any other comments on the new post.</description>
		<content:encoded><![CDATA[<p>Wow, thanks for the fast response.</p>
<p>I checked out your newer version and it looks like a much better solution. So I think I&#8217;ll just get to work implementing it into my project<br />
(<a href="http://thefekete.net/gitweb/?p=gitWebTools.git;a=blob;f=publish;h=b5c4f6dedda2ebf2180a889a937e22878c833449" rel="nofollow">http://thefekete.net/gitweb/?p=gitWebTools.git;a=blob;f=publish;h=b5c4f6dedda2ebf2180a889a937e22878c833449</a>).</p>
<p>I&#8217;ll leave any other comments on the new post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: valeriup</title>
		<link>http://valeriu.palos.ro/219/bash-uri-parser-using-sed/comment-page-1/#comment-26</link>
		<dc:creator>valeriup</dc:creator>
		<pubDate>Wed, 03 Feb 2010 08:31:58 +0000</pubDate>
		<guid isPermaLink="false">http://valeriu.palos.ro/?p=219#comment-26</guid>
		<description>@all: Dan&#039;s comment reminded me that I made a big improvement on this parser a while back so I hurried and posted a new article about it. &lt;a href=&quot;http://valeriu.palos.ro/537/uri-parsing-using-bash-built-in-features/&quot; rel=&quot;nofollow&quot;&gt;&lt;b&gt;Check it out!&lt;/b&gt;&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>@all: Dan&#8217;s comment reminded me that I made a big improvement on this parser a while back so I hurried and posted a new article about it. <a href="http://valeriu.palos.ro/537/uri-parsing-using-bash-built-in-features/" rel="nofollow"><b>Check it out!</b></a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: valeriu.palos.ro &#187; URI parsing using Bash built-in features</title>
		<link>http://valeriu.palos.ro/219/bash-uri-parser-using-sed/comment-page-1/#comment-24</link>
		<dc:creator>valeriu.palos.ro &#187; URI parsing using Bash built-in features</dc:creator>
		<pubDate>Wed, 03 Feb 2010 08:24:11 +0000</pubDate>
		<guid isPermaLink="false">http://valeriu.palos.ro/?p=219#comment-24</guid>
		<description>[...] for this post?3 February 2010URI parsing using Bash built-in featuresA bit of backgroundA while ago I posted an article describing how one could parse complete URIs in Bash using the sed program. Since then, I have [...]</description>
		<content:encoded><![CDATA[<p>[...] for this post?3 February 2010URI parsing using Bash built-in featuresA bit of backgroundA while ago I posted an article describing how one could parse complete URIs in Bash using the sed program. Since then, I have [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: valeriup</title>
		<link>http://valeriu.palos.ro/219/bash-uri-parser-using-sed/comment-page-1/#comment-23</link>
		<dc:creator>valeriup</dc:creator>
		<pubDate>Wed, 03 Feb 2010 06:29:29 +0000</pubDate>
		<guid isPermaLink="false">http://valeriu.palos.ro/?p=219#comment-23</guid>
		<description>Hi Dan, thank you very much for your feedback, that&#039;s just what I need to improve on this!

However, I was not able to replicate the error! Please give me the exact URI string that produces the error so I can do some debugging! :)</description>
		<content:encoded><![CDATA[<p>Hi Dan, thank you very much for your feedback, that&#8217;s just what I need to improve on this!</p>
<p>However, I was not able to replicate the error! Please give me the exact URI string that produces the error so I can do some debugging! <img src='http://valeriu.palos.ro/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Fekete</title>
		<link>http://valeriu.palos.ro/219/bash-uri-parser-using-sed/comment-page-1/#comment-22</link>
		<dc:creator>Dan Fekete</dc:creator>
		<pubDate>Wed, 03 Feb 2010 04:08:11 +0000</pubDate>
		<guid isPermaLink="false">http://valeriu.palos.ro/?p=219#comment-22</guid>
		<description>Here&#039;s my uritest script:

&lt;pre&gt;
#!/bin/bash

uri=$1

echo $uri

# Parse URI
op=`echo &quot;$uri&quot; &#124; sed -nrf &quot;uri.sed&quot;`

# Handle invalid URI
[[ $op == &#039;ERROR&#039; ]] &amp;

# Execute assignments
eval &quot;$op&quot;

echo $uri_scheme
echo $uri_address
echo $uri_user
echo $uri_password
echo $uri_host
echo $uri_port
echo $uri_path
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Here&#8217;s my uritest script:</p>
<pre>
#!/bin/bash

uri=$1

echo $uri

# Parse URI
op=`echo "$uri" | sed -nrf "uri.sed"`

# Handle invalid URI
[[ $op == 'ERROR' ]] &#038;

# Execute assignments
eval "$op"

echo $uri_scheme
echo $uri_address
echo $uri_user
echo $uri_password
echo $uri_host
echo $uri_port
echo $uri_path
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Fekete</title>
		<link>http://valeriu.palos.ro/219/bash-uri-parser-using-sed/comment-page-1/#comment-21</link>
		<dc:creator>Dan Fekete</dc:creator>
		<pubDate>Wed, 03 Feb 2010 04:03:18 +0000</pubDate>
		<guid isPermaLink="false">http://valeriu.palos.ro/?p=219#comment-21</guid>
		<description>Hey, thanks so much for posting this. It&#039;s perfect for my application.

I&#039;m having a problem though with the path parts and query strings sections of uri.sed. If I comment them out `eval $op&#039; works fine, but if I run it normally I get:

./uritest: array assign: line 1: unexpected EOF while looking for matching `&quot;&#039;
./uritest: array assign: line 15: syntax error: unexpected end of file

It&#039;s no problem for me, as all i&#039;m looking to do is parse git, ssh and file uri&#039;s (without args) and I don&#039;t need the path parts. But I thought I&#039;d let you know, and I was curious if this is a problem with my setup or what.

My setup:
Ubuntu Server 9.10 amd64
Linux helpcomputer 2.6.28-17-generic #58-Ubuntu SMP Tue Dec 1 21:27:25 UTC 2009 x86_64 GNU/Linux
GNU bash, version 3.2.48(1)-release (x86_64-pc-linux-gnu)
GNU sed version 4.1.5

Thanks again for this post, totaly awesome.</description>
		<content:encoded><![CDATA[<p>Hey, thanks so much for posting this. It&#8217;s perfect for my application.</p>
<p>I&#8217;m having a problem though with the path parts and query strings sections of uri.sed. If I comment them out `eval $op&#8217; works fine, but if I run it normally I get:</p>
<p>./uritest: array assign: line 1: unexpected EOF while looking for matching `&#8221;&#8216;<br />
./uritest: array assign: line 15: syntax error: unexpected end of file</p>
<p>It&#8217;s no problem for me, as all i&#8217;m looking to do is parse git, ssh and file uri&#8217;s (without args) and I don&#8217;t need the path parts. But I thought I&#8217;d let you know, and I was curious if this is a problem with my setup or what.</p>
<p>My setup:<br />
Ubuntu Server 9.10 amd64<br />
Linux helpcomputer 2.6.28-17-generic #58-Ubuntu SMP Tue Dec 1 21:27:25 UTC 2009 x86_64 GNU/Linux<br />
GNU bash, version 3.2.48(1)-release (x86_64-pc-linux-gnu)<br />
GNU sed version 4.1.5</p>
<p>Thanks again for this post, totaly awesome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: valeriup</title>
		<link>http://valeriu.palos.ro/219/bash-uri-parser-using-sed/comment-page-1/#comment-13</link>
		<dc:creator>valeriup</dc:creator>
		<pubDate>Mon, 23 Nov 2009 09:42:43 +0000</pubDate>
		<guid isPermaLink="false">http://valeriu.palos.ro/?p=219#comment-13</guid>
		<description>[Update] Moved the [cci_bash]sed[/cci_bash] instructions into a separate file for modularization.</description>
		<content:encoded><![CDATA[<p>[Update] Moved the [cci_bash]sed[/cci_bash] instructions into a separate file for modularization.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: valeriup</title>
		<link>http://valeriu.palos.ro/219/bash-uri-parser-using-sed/comment-page-1/#comment-9</link>
		<dc:creator>valeriup</dc:creator>
		<pubDate>Fri, 20 Nov 2009 09:52:04 +0000</pubDate>
		<guid isPermaLink="false">http://valeriu.palos.ro/?p=219#comment-9</guid>
		<description>[Edit] Changed parsing of the query args to permit parsing of arguments that have no value assigned to them (e.g. ...?arg_with_no_value&amp;...)</description>
		<content:encoded><![CDATA[<p>[Edit] Changed parsing of the query args to permit parsing of arguments that have no value assigned to them (e.g. &#8230;?arg_with_no_value&#038;&#8230;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

