<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Use Ruby to Prefix all lines /Postfix all lines/Remove empty lines/Replace strings in all lines of a file</title>
	<atom:link href="http://devender.wordpress.com/2006/12/16/use-ruby-to-prefix-all-lines-postfix-all-linesremove-empty-linesreplace-strings-in-all-lines-of-a-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://devender.wordpress.com/2006/12/16/use-ruby-to-prefix-all-lines-postfix-all-linesremove-empty-linesreplace-strings-in-all-lines-of-a-file/</link>
	<description>Who is John Galt ?</description>
	<lastBuildDate>Tue, 24 Nov 2009 16:52:54 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Follow up to the Use Ruby to Prefix all lines /Postfix all lines/Remove empty lines/Replace strings in all lines of a file &#171; Devender&#8217;s Weblog</title>
		<link>http://devender.wordpress.com/2006/12/16/use-ruby-to-prefix-all-lines-postfix-all-linesremove-empty-linesreplace-strings-in-all-lines-of-a-file/#comment-5</link>
		<dc:creator>Follow up to the Use Ruby to Prefix all lines /Postfix all lines/Remove empty lines/Replace strings in all lines of a file &#171; Devender&#8217;s Weblog</dc:creator>
		<pubDate>Sun, 17 Dec 2006 20:21:10 +0000</pubDate>
		<guid isPermaLink="false">http://devender.wordpress.com/2006/12/16/use-ruby-to-prefix-all-lines-postfix-all-linesremove-empty-linesreplace-strings-in-all-lines-of-a-file/#comment-5</guid>
		<description>[...] Comments (RSS)       &#171; Use Ruby to Prefix all lines /Postfix all lines/Remove empty lines/Replace strings in all lines of a file [...]</description>
		<content:encoded><![CDATA[<p>[...] Comments (RSS)       &laquo; Use Ruby to Prefix all lines /Postfix all lines/Remove empty lines/Replace strings in all lines of a file [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rong Ou</title>
		<link>http://devender.wordpress.com/2006/12/16/use-ruby-to-prefix-all-lines-postfix-all-linesremove-empty-linesreplace-strings-in-all-lines-of-a-file/#comment-4</link>
		<dc:creator>Rong Ou</dc:creator>
		<pubDate>Sat, 16 Dec 2006 08:44:24 +0000</pubDate>
		<guid isPermaLink="false">http://devender.wordpress.com/2006/12/16/use-ruby-to-prefix-all-lines-postfix-all-linesremove-empty-linesreplace-strings-in-all-lines-of-a-file/#comment-4</guid>
		<description>Damn, it ate all my redirects. Here is it again:

prefix:
sed ’s/^.*$/prefix(&amp;)/’ &lt; inputfile &gt; outputfile

suffix:
sed ’s/^.*$/(&amp;)suffix/’ &lt; inputfile &gt; outputfile

remove blank lines:
sed ‘/^$/ d’ &lt; inputfile &gt; outputfile

replace strings:
sed ’s/old/new/’ &lt; inputfile &gt; outputfile</description>
		<content:encoded><![CDATA[<p>Damn, it ate all my redirects. Here is it again:</p>
<p>prefix:<br />
sed ’s/^.*$/prefix(&amp;)/’ &lt; inputfile &gt; outputfile</p>
<p>suffix:<br />
sed ’s/^.*$/(&amp;)suffix/’ &lt; inputfile &gt; outputfile</p>
<p>remove blank lines:<br />
sed ‘/^$/ d’ &lt; inputfile &gt; outputfile</p>
<p>replace strings:<br />
sed ’s/old/new/’ &lt; inputfile &gt; outputfile</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rong Ou</title>
		<link>http://devender.wordpress.com/2006/12/16/use-ruby-to-prefix-all-lines-postfix-all-linesremove-empty-linesreplace-strings-in-all-lines-of-a-file/#comment-3</link>
		<dc:creator>Rong Ou</dc:creator>
		<pubDate>Sat, 16 Dec 2006 08:41:58 +0000</pubDate>
		<guid isPermaLink="false">http://devender.wordpress.com/2006/12/16/use-ruby-to-prefix-all-lines-postfix-all-linesremove-empty-linesreplace-strings-in-all-lines-of-a-file/#comment-3</guid>
		<description>prefix:
sed &#039;s/^.*$/prefix(&amp;)/&#039;  outputfile

suffix:
sed &#039;s/^.*$/(&amp;)suffix/&#039;  outputfile

remove blank lines:
sed &#039;/^$/ d&#039;  outputfile

replace strings:
sed &#039;s/old/new/&#039;  outputfile</description>
		<content:encoded><![CDATA[<p>prefix:<br />
sed &#8217;s/^.*$/prefix(&amp;)/&#8217;  outputfile</p>
<p>suffix:<br />
sed &#8217;s/^.*$/(&amp;)suffix/&#8217;  outputfile</p>
<p>remove blank lines:<br />
sed &#8216;/^$/ d&#8217;  outputfile</p>
<p>replace strings:<br />
sed &#8217;s/old/new/&#8217;  outputfile</p>
]]></content:encoded>
	</item>
</channel>
</rss>
