<?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: Unix Sed Tutorial: 6 Examples for Sed Branching Operation</title>
	<atom:link href="http://www.thegeekstuff.com/2009/12/unix-sed-tutorial-6-examples-for-sed-branching-operation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thegeekstuff.com/2009/12/unix-sed-tutorial-6-examples-for-sed-branching-operation/</link>
	<description>Guides, HowTos and Tips for Technology Geeks</description>
	<lastBuildDate>Thu, 09 Feb 2012 13:04:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Ajay</title>
		<link>http://www.thegeekstuff.com/2009/12/unix-sed-tutorial-6-examples-for-sed-branching-operation/comment-page-1/#comment-186974</link>
		<dc:creator>Ajay</dc:creator>
		<pubDate>Sun, 29 Jan 2012 03:57:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2903#comment-186974</guid>
		<description>I also recommend perl.</description>
		<content:encoded><![CDATA[<p>I also recommend perl.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 6 Useful Linux One Liners</title>
		<link>http://www.thegeekstuff.com/2009/12/unix-sed-tutorial-6-examples-for-sed-branching-operation/comment-page-1/#comment-64582</link>
		<dc:creator>6 Useful Linux One Liners</dc:creator>
		<pubDate>Tue, 28 Sep 2010 06:03:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2903#comment-64582</guid>
		<description>[...] sed command plays a vital role in text manipulation operations. Please refer our Sed Tutorial for detailed explanation about sed [...]</description>
		<content:encoded><![CDATA[<p>[...] sed command plays a vital role in text manipulation operations. Please refer our Sed Tutorial for detailed explanation about sed [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cjk</title>
		<link>http://www.thegeekstuff.com/2009/12/unix-sed-tutorial-6-examples-for-sed-branching-operation/comment-page-1/#comment-27959</link>
		<dc:creator>cjk</dc:creator>
		<pubDate>Thu, 31 Dec 2009 22:21:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2903#comment-27959</guid>
		<description>Writing larger pieces in sed can quickly get awkward (no pun intended). In those cases I recommend Perl, also because it has PCRE which are a lot more logical than the REs of the old tools.</description>
		<content:encoded><![CDATA[<p>Writing larger pieces in sed can quickly get awkward (no pun intended). In those cases I recommend Perl, also because it has PCRE which are a lot more logical than the REs of the old tools.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Berry</title>
		<link>http://www.thegeekstuff.com/2009/12/unix-sed-tutorial-6-examples-for-sed-branching-operation/comment-page-1/#comment-27265</link>
		<dc:creator>Berry</dc:creator>
		<pubDate>Fri, 25 Dec 2009 08:18:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2903#comment-27265</guid>
		<description>In Example 2,
4th line, &#039;/\n$/!b loop&#039;, the article said it checks if it comes to the last line of the file

but actuallty, it checks whether it is a blank line, because when a blank line appends to the pattern buffer, the pattern buffer only adds a &#039;\n&#039; to seperate the orginal pattern buffer and the new blank line, then the buffer ends with a &#039;\n&#039;

it means that the script will not loop if it sees a blank line, so if the file is (for example):

abcd
&quot;efg
blank line
hij&quot;

the script will not remove the text between multiline double quotes

and because the script has checked if it comes to the last line in 2nd line of the script, I wonder can we use &#039;b loop&#039; directly in the 4th line of the script

Thank you very much for sharing so great things with us, ^_^</description>
		<content:encoded><![CDATA[<p>In Example 2,<br />
4th line, &#8216;/\n$/!b loop&#8217;, the article said it checks if it comes to the last line of the file</p>
<p>but actuallty, it checks whether it is a blank line, because when a blank line appends to the pattern buffer, the pattern buffer only adds a &#8216;\n&#8217; to seperate the orginal pattern buffer and the new blank line, then the buffer ends with a &#8216;\n&#8217;</p>
<p>it means that the script will not loop if it sees a blank line, so if the file is (for example):</p>
<p>abcd<br />
&#8220;efg<br />
blank line<br />
hij&#8221;</p>
<p>the script will not remove the text between multiline double quotes</p>
<p>and because the script has checked if it comes to the last line in 2nd line of the script, I wonder can we use &#8216;b loop&#8217; directly in the 4th line of the script</p>
<p>Thank you very much for sharing so great things with us, ^_^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Catalin</title>
		<link>http://www.thegeekstuff.com/2009/12/unix-sed-tutorial-6-examples-for-sed-branching-operation/comment-page-1/#comment-27198</link>
		<dc:creator>Catalin</dc:creator>
		<pubDate>Thu, 24 Dec 2009 18:51:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2903#comment-27198</guid>
		<description>This is a good article . I like it !</description>
		<content:encoded><![CDATA[<p>This is a good article . I like it !</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Content Delivery Network via Amazon Web Services: CloudFront: static.thegeekstuff.com

Served from: www.thegeekstuff.com @ 2012-02-09 13:45:45 -->
